Move XMapWindow of client_remove in wmfs_quit
This commit is contained in:
parent
6fe9b17e83
commit
34964da69a
@ -1392,8 +1392,6 @@ client_remove(struct client *c)
|
||||
XGrabServer(W->dpy);
|
||||
XSetErrorHandler(wmfs_error_handler_dummy);
|
||||
XReparentWindow(W->dpy, c->win, W->root, c->rgeo.x, c->rgeo.y);
|
||||
if(c->flags & CLIENT_REMOVEALL)
|
||||
XMapWindow(W->dpy, c->win);
|
||||
XUngrabButton(W->dpy, AnyButton, AnyModifier, c->win);
|
||||
ewmh_set_wm_state(c->win, WithdrawnState);
|
||||
|
||||
|
||||
@ -418,6 +418,7 @@ wmfs_quit(void)
|
||||
c = SLIST_FIRST(&W->h.client);
|
||||
client_update_props(c, CPROP_LOC | CPROP_FLAG | CPROP_GEO);
|
||||
c->flags |= (CLIENT_IGNORE_LAYOUT | CLIENT_REMOVEALL);
|
||||
XMapWindow(W->dpy, c->win);
|
||||
client_remove(c);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user