multihead issue fix also in -current

This commit is contained in:
Anselm R. Garbe 2006-05-25 13:49:32 +02:00
parent 41c1fb40f0
commit b195664857
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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) {