diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2007-06-08 16:29:20 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2007-06-08 16:29:20 +0000 |
commit | 15bcdf0fa9b304b2cec8fbef06523a52ae043577 (patch) | |
tree | 182a12e0d2045b51376b5bec96a4d0e10f2d0423 /app/cwm | |
parent | e5ba7e51e6949c44cdace50876dba85d78465b2c (diff) |
don't map hidden windows on re-start.
from aon@iki.fi
Diffstat (limited to 'app/cwm')
-rw-r--r-- | app/cwm/client.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/app/cwm/client.c b/app/cwm/client.c index add109e80..8412fd88a 100644 --- a/app/cwm/client.c +++ b/app/cwm/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); |