cosmetic
This commit is contained in:
parent
34309baa60
commit
876377880d
1
client.c
1
client.c
|
@ -598,7 +598,6 @@ client_unmanage(Client *c)
|
||||||
if(globalconf.focus->client == c)
|
if(globalconf.focus->client == c)
|
||||||
focus(NULL, True, c->screen);
|
focus(NULL, True, c->screen);
|
||||||
|
|
||||||
|
|
||||||
XUngrabButton(globalconf.display, AnyButton, AnyModifier, c->win);
|
XUngrabButton(globalconf.display, AnyButton, AnyModifier, c->win);
|
||||||
window_setstate(c->win, WithdrawnState);
|
window_setstate(c->win, WithdrawnState);
|
||||||
|
|
||||||
|
|
5
event.c
5
event.c
|
@ -247,11 +247,12 @@ handle_event_enternotify(XEvent * e)
|
||||||
window_grabbuttons(get_phys_screen(c->screen), c->win, True, False);
|
window_grabbuttons(get_phys_screen(c->screen), c->win, True, False);
|
||||||
p_delete(&curtags);
|
p_delete(&curtags);
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
for(screen = 0; screen < ScreenCount(e->xany.display); screen++)
|
for(screen = 0; screen < ScreenCount(e->xany.display); screen++)
|
||||||
if(ev->window == RootWindow(e->xany.display, screen))
|
if(ev->window == RootWindow(e->xany.display, screen))
|
||||||
focus(NULL, True, screen);
|
focus(NULL, True, screen);
|
||||||
if ((c = globalconf.focus->client))
|
if((c = globalconf.focus->client))
|
||||||
window_grabbuttons(c->screen, c->win, False, False);
|
window_grabbuttons(c->screen, c->win, False, False);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue