client: set ICONIC on hidden, WITHDRAWN on ban

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-19 19:53:15 +02:00
parent a5478e5438
commit 7b15c1d6c0
1 changed files with 4 additions and 1 deletions

View File

@ -207,7 +207,10 @@ client_ban(client_t *c)
if(globalconf.focus->client == c)
client_unfocus(c);
xcb_unmap_window(globalconf.connection, c->win);
window_setstate(c->win, XCB_WM_ICONIC_STATE);
if(c->ishidden)
window_setstate(c->win, XCB_WM_ICONIC_STATE);
else
window_setstate(c->win, XCB_WM_WITHDRAWN_STATE);
if(c->titlebar && c->titlebar->position && c->titlebar->sw)
xcb_unmap_window(globalconf.connection, c->titlebar->sw->window);
}