diff -r 484245788760 -r e61ca30d9474 client.c --- a/client.c Thu Aug 16 17:55:55 2007 +0200 +++ b/client.c Thu Aug 16 18:30:25 2007 +0200 @@ -227,9 +227,7 @@ 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 @@ XSync(dpy, False); XSetErrorHandler(xerror); XUngrabServer(dpy); - arrange(); + if(state != NormalState) + arrange(); } void