mirror of
https://github.com/0intro/wmii
synced 2025-02-28 04:04:02 +03:00
multihead issue fix also in -current
This commit is contained in:
parent
41c1fb40f0
commit
b195664857
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user