use ev->same_screen var

This commit is contained in:
Julien Danjou 2008-01-11 11:57:43 +01:00
parent 7d4747155a
commit d09d3ccafd
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}