[hackers] [wmii] Set keyboard focus to the bar instead of the root when no window is in focus

From: Kris Maglione <jg_AT_suckless.org>
Date: Mon Feb 12 20:07:15 2007

changeset: 1855:0c641e3e2850
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Mon Feb 12 14:05:45 2007 -0500
summary: Set keyboard focus to the bar instead of the root when no window is in focus

diff -r 90f485193c6f -r 0c641e3e2850 area.c
--- a/area.c Mon Feb 12 13:23:35 2007 -0500
+++ b/area.c Mon Feb 12 14:05:45 2007 -0500
@@ -336,7 +336,7 @@ focus_area(Area *a) {
                 draw_frame(f);
                 XSetInputFocus(blz.dpy, f->client->win, RevertToPointerRoot, CurrentTime);
         }else
- XSetInputFocus(blz.dpy, blz.root, RevertToPointerRoot, CurrentTime);
+ XSetInputFocus(blz.dpy, screen->barwin, RevertToPointerRoot, CurrentTime);
 
         if(old_a && old_a->sel)
                 draw_frame(old_a->sel);
Received on Mon Feb 12 2007 - 20:07:15 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:14 UTC