client.c
changeset 408 a031bbee1816
parent 405 dd44dc937e8b
child 429 a31de8605f72
--- a/client.c	Mon Sep 04 17:37:31 2006 +0200
+++ b/client.c	Mon Sep 04 17:39:33 2006 +0200
@@ -254,15 +254,12 @@
 	clients = c;
 
 	settitle(c);
-	if(isvisible(c)) {
-		focus(NULL);
-		sel = c;
-	}
-	arrange(NULL);
+	ban(c);
 	XMapWindow(dpy, c->win);
 	XMapWindow(dpy, c->twin);
 	if(isvisible(c))
 		focus(c);
+	arrange(NULL);
 }
 
 void