JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
hotfixing with sanders hint
[dwm.git] / client.c
index 81f4280..0b5fb2b 100644 (file)
--- a/client.c
+++ b/client.c
@@ -254,8 +254,10 @@ manage(Window w, XWindowAttributes *wa)
        clients = c;
 
        settitle(c);
-       if(isvisible(c))
+       if(isvisible(c)) {
+               focus(NULL);
                sel = c;
+       }
        arrange(NULL);
        XMapWindow(dpy, c->win);
        XMapWindow(dpy, c->twin);