summary refs log tree commit diff
diff options
context:
space:
mode:
authorjasper <jasper>2007-06-08 16:29:19 +0000
committerjasper <jasper>2007-06-08 16:29:19 +0000
commit80d08270b87adce365904cfa43a8135cf7b13fb1 (patch)
treeee4f6e30ee59ead9dca8fb3d31ff114f1bb9aed3
parent35887fbdf6e97591feb8f0daf1d7123a5bbe9ed5 (diff)
downloadcwm-80d08270b87adce365904cfa43a8135cf7b13fb1.tar.gz
cwm-80d08270b87adce365904cfa43a8135cf7b13fb1.tar.xz
cwm-80d08270b87adce365904cfa43a8135cf7b13fb1.zip
don't map hidden windows on re-start.
from aon@iki.fi
-rw-r--r--client.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/client.c b/client.c
index 54c8172..b2a30bb 100644
--- a/client.c
+++ b/client.c
@@ -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);