From 7b15c1d6c084296b5eca693a533f91ca451997e6 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 19 Jun 2008 19:53:15 +0200 Subject: [PATCH] client: set ICONIC on hidden, WITHDRAWN on ban Signed-off-by: Julien Danjou --- client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client.c b/client.c index 5b9674ad..91f4ed8e 100644 --- a/client.c +++ b/client.c @@ -207,7 +207,10 @@ client_ban(client_t *c) if(globalconf.focus->client == c) client_unfocus(c); 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) xcb_unmap_window(globalconf.connection, c->titlebar->sw->window); }