summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/client.c b/client.c
index 81f4280..0b5fb2b 100644
--- a/client.c
+++ b/client.c
@@ -254,8 +254,10 @@ manage(Window w, XWindowAttributes *wa)
254 clients = c; 254 clients = c;
255 255
256 settitle(c); 256 settitle(c);
257 if(isvisible(c)) 257 if(isvisible(c)) {
258 focus(NULL);
258 sel = c; 259 sel = c;
260 }
259 arrange(NULL); 261 arrange(NULL);
260 XMapWindow(dpy, c->win); 262 XMapWindow(dpy, c->win);
261 XMapWindow(dpy, c->twin); 263 XMapWindow(dpy, c->twin);