about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--client.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/client.c b/client.c
index 0b5fb2b..4f2a69c 100644
--- a/client.c
+++ b/client.c
@@ -254,15 +254,12 @@ manage(Window w, XWindowAttributes *wa)
 	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
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111