mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
client: set WM_STATE on minimize
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
3c08a7621b
commit
9a5b0e404d
1 changed files with 4 additions and 0 deletions
4
client.c
4
client.c
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue