don't map hidden windows on re-start.

from aon@iki.fi
This commit is contained in:
jasper 2007-06-08 16:29:19 +00:00
parent 35887fbdf6
commit 80d08270b8

View File

@ -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);