client: set WM_STATE on minimize
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
3c08a7621b
commit
9a5b0e404d
4
client.c
4
client.c
|
@ -759,6 +759,10 @@ client_setminimized(client_t *c, bool s)
|
||||||
client_need_arrange(c);
|
client_need_arrange(c);
|
||||||
c->isminimized = s;
|
c->isminimized = s;
|
||||||
client_need_arrange(c);
|
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);
|
ewmh_client_update_hints(c);
|
||||||
/* execute hook */
|
/* execute hook */
|
||||||
hook_property(client, c, "minimized");
|
hook_property(client, c, "minimized");
|
||||||
|
|
Loading…
Reference in New Issue