[hackers] [wmii] Switch from RevertToParent to RevertToPointerRoot to fix focus issues with multiple X screens.

From: sqweek <sqweek_AT_gmail.com>
Date: Fri Nov 02 18:16:51 2007

changeset: 2224:6646dfbe251d
tag: tip
user: sqweek <sqweek_AT_gmail.com>
date: Sat Nov 03 02:27:23 2007 +0900
summary: Switch from RevertToParent to RevertToPointerRoot to fix focus issues with multiple X screens.

diff -r 1ae4e879a95e -r 6646dfbe251d cmd/wmii/client.c
--- a/cmd/wmii/client.c Sun Oct 21 14:29:44 2007 +0800
+++ b/cmd/wmii/client.c Sat Nov 03 02:27:23 2007 +0900
@@ -337,16 +337,16 @@ focus_client(Client *c) {
                 Dprint("\t%s => %s\n", clientname(screen->focus), clientname(c));
 
                 if(c)
- setfocus(&c->w, RevertToParent);
+ setfocus(&c->w, RevertToPointerRoot);
                 else
- setfocus(screen->barwin, RevertToParent);
+ setfocus(screen->barwin, RevertToPointerRoot);
 
                 write_event("ClientFocus %C\n", c);
 
                 XSync(display, False);
                 flushevents(FocusChangeMask, True);
         } else if(c && c->noinput) {
- setfocus(nil, RevertToParent);
+ setfocus(nil, RevertToPointerRoot);
         }
 }
 
diff -r 1ae4e879a95e -r 6646dfbe251d cmd/wmii/event.c
--- a/cmd/wmii/event.c Sun Oct 21 14:29:44 2007 +0800
+++ b/cmd/wmii/event.c Sat Nov 03 02:27:23 2007 +0900
@@ -135,7 +135,7 @@ focusin(XEvent *e) {
         if(ev->detail == NotifyDetailNone) {
                 print_focus(&c_magic, "<magic[none]>");
                 screen->focus = &c_magic;
- setfocus(screen->barwin, RevertToParent);
+ setfocus(screen->barwin, RevertToPointerRoot);
                 return;
         }
 
Received on Fri Nov 02 2007 - 18:16:51 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:58:41 UTC