This commit is contained in:
Julien Danjou 2008-01-11 11:41:38 +01:00
parent 34309baa60
commit 876377880d
2 changed files with 3 additions and 3 deletions

View File

@ -598,7 +598,6 @@ client_unmanage(Client *c)
if(globalconf.focus->client == c)
focus(NULL, True, c->screen);
XUngrabButton(globalconf.display, AnyButton, AnyModifier, c->win);
window_setstate(c->win, WithdrawnState);

View File

@ -247,11 +247,12 @@ handle_event_enternotify(XEvent * e)
window_grabbuttons(get_phys_screen(c->screen), c->win, True, False);
p_delete(&curtags);
}
else {
else
{
for(screen = 0; screen < ScreenCount(e->xany.display); screen++)
if(ev->window == RootWindow(e->xany.display, screen))
focus(NULL, True, screen);
if ((c = globalconf.focus->client))
if((c = globalconf.focus->client))
window_grabbuttons(c->screen, c->win, False, False);
}
}