aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasper2007-06-08 16:29:19 +0000
committerjasper2007-06-08 16:29:19 +0000
commit65c89b8358ae0ace01a76a8d2b6d39c4a673f1fb (patch)
tree5697a8af022787aa2eb3ba919c90b4c353260407
parent01c773dbfd2a5bd48d3f8f74dc90e3fa4664868a (diff)
downloadcwm-65c89b8358ae0ace01a76a8d2b6d39c4a673f1fb.tar.gz
don't map hidden windows on re-start.
from aon@iki.fi
-rw-r--r--client.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/client.c b/client.c
index add109e..8412fd8 100644
--- a/client.c
+++ b/client.c
@@ -4,7 +4,7 @@
* Copyright (c) 2004 Marius Aamodt Eriksen <marius@monkey.org>
* All rights reserved.
*
- * $Id: client.c,v 1.5 2007/06/05 19:03:20 jasper Exp $
+ * $Id: client.c,v 1.6 2007/06/08 16:29:19 jasper Exp $
*/
#include "headers.h"
@@ -162,8 +162,13 @@ client_new(Window win, struct screen_ctx *sc, int mapped)
/* Notify client of its configuration. */
xev_reconfig(cc);
- XMapRaised(X_Dpy, cc->pwin);
- XMapWindow(X_Dpy, cc->win);
+ if (state == IconicState)
+ client_hide(cc);
+ else {
+ XMapRaised(X_Dpy, cc->pwin);
+ XMapWindow(X_Dpy, cc->win);
+ }
+
xu_setstate(cc, cc->state);
XSync(X_Dpy, False);