Move XMapWindow of client_remove in wmfs_quit

This commit is contained in:
Martin Duquesnoy 2012-02-11 19:08:14 +01:00
parent 6fe9b17e83
commit 34964da69a
2 changed files with 1 additions and 2 deletions

View File

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

View File

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