client: set WM_STATE on minimize

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-06-05 14:59:51 +02:00
parent 3c08a7621b
commit 9a5b0e404d
1 changed files with 4 additions and 0 deletions

View File

@ -759,6 +759,10 @@ client_setminimized(client_t *c, bool s)
client_need_arrange(c);
c->isminimized = s;
client_need_arrange(c);
if(s)
window_state_set(c->win, XCB_WM_STATE_ICONIC);
else
window_state_set(c->win, XCB_WM_STATE_NORMAL);
ewmh_client_update_hints(c);
/* execute hook */
hook_property(client, c, "minimized");