Added tag 1.3 for changeset 6413ea66b1c2496cfc2173fe58df67cb965eb1da
[dwm.git] / client.c
index 8a8a99e..81f4280 100644 (file)
--- a/client.c
+++ b/client.c
@@ -254,6 +254,8 @@ manage(Window w, XWindowAttributes *wa)
        clients = c;
 
        settitle(c);
+       if(isvisible(c))
+               sel = c;
        arrange(NULL);
        XMapWindow(dpy, c->win);
        XMapWindow(dpy, c->twin);