From 9a5b0e404d1d449dbded84ca96ee5df05dd716a6 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 5 Jun 2009 14:59:51 +0200 Subject: [PATCH] client: set WM_STATE on minimize Signed-off-by: Julien Danjou --- client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client.c b/client.c index 47f6f283..e7fe4f73 100644 --- a/client.c +++ b/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");