X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=client.c;h=c6cf770cb2c86c4a6862592c5753ab283910273c;hb=04dec4c94390fdf57893615de5b5872dd5abbce4;hp=22408f2ebe239593777a3a014d5b5ea064064eca;hpb=10d13f01ff764ba0e875adf5d2b83c49aa08d148;p=dwm.git diff --git a/client.c b/client.c index 22408f2..c6cf770 100644 --- a/client.c +++ b/client.c @@ -227,9 +227,7 @@ manage(Window w, XWindowAttributes *wa) { attach(c); attachstack(c); XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); /* some windows require this */ - setclientstate(c, IconicState); - c->isbanned = True; - focus(c); + ban(c); arrange(); } @@ -325,7 +323,8 @@ unmanage(Client *c, long state) { XSync(dpy, False); XSetErrorHandler(xerror); XUngrabServer(dpy); - arrange(); + if(state != NormalState) + arrange(); } void