client: set ICONIC on hidden, WITHDRAWN on ban
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a5478e5438
commit
7b15c1d6c0
5
client.c
5
client.c
|
@ -207,7 +207,10 @@ client_ban(client_t *c)
|
||||||
if(globalconf.focus->client == c)
|
if(globalconf.focus->client == c)
|
||||||
client_unfocus(c);
|
client_unfocus(c);
|
||||||
xcb_unmap_window(globalconf.connection, c->win);
|
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)
|
if(c->titlebar && c->titlebar->position && c->titlebar->sw)
|
||||||
xcb_unmap_window(globalconf.connection, c->titlebar->sw->window);
|
xcb_unmap_window(globalconf.connection, c->titlebar->sw->window);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue