diff options
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |