commit b195664857878cc3f066231d1cd9b298ed7380ba
parent 41c1fb40f0305462979473e949dcf36e99c03875
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Thu, 25 May 2006 13:49:32 +0200
multihead issue fix also in -current
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/cmd/wm/event.c b/cmd/wm/event.c
@@ -220,6 +220,8 @@ handle_enternotify(XEvent *e)
if(c != old)
focus(c, False);
}
+ else if(ev->window == root)
+ XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
}
static void
diff --git a/cmd/wm/wm.c b/cmd/wm/wm.c
@@ -251,7 +251,7 @@ main(int argc, char *argv[])
other_wm_running = 0;
XSetErrorHandler(startup_error_handler);
/* this causes an error if some other WM is running */
- XSelectInput(dpy, root, SubstructureRedirectMask);
+ XSelectInput(dpy, root, SubstructureRedirectMask | EnterWindowMask);
XSync(dpy, False);
if(other_wm_running) {