use ev->same_screen var
This commit is contained in:
parent
7d4747155a
commit
d09d3ccafd
2
event.c
2
event.c
|
@ -251,7 +251,7 @@ handle_event_enternotify(XEvent * e)
|
|||
{
|
||||
for(screen = 0; screen < ScreenCount(e->xany.display); screen++)
|
||||
if(ev->window == RootWindow(e->xany.display, screen))
|
||||
focus(NULL, True, screen);
|
||||
focus(NULL, ev->same_screen, screen);
|
||||
if((c = globalconf.focus->client))
|
||||
window_grabbuttons(c->screen, c->win, False, False);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue