Remove extra work and simplify client state handling.

This commit is contained in:
okan
2013-12-11 14:16:09 +00:00
parent 23a1abdd8a
commit 0d9b1becff
4 changed files with 37 additions and 45 deletions

View File

@@ -99,8 +99,7 @@ xev_handle_unmapnotify(XEvent *ee)
if ((cc = client_find(e->window)) != NULL) {
if (e->send_event) {
cc->state = WithdrawnState;
xu_set_wm_state(cc->win, cc->state);
client_set_wm_state(cc, WithdrawnState);
} else {
if (!(cc->flags & CLIENT_HIDDEN))
client_delete(cc);