X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=client.c;h=0b5fb2ba0171cce4b98f9d1b5da6f3b8bd466196;hb=95d8423823800cdb9e4ed06f407f2d5deefcaf38;hp=8a8a99eab90ca39d53c48c031ffbacdf159ae16e;hpb=26157e6973f240a9b5ee407b9d2d5eca9358844f;p=dwm.git diff --git a/client.c b/client.c index 8a8a99e..0b5fb2b 100644 --- a/client.c +++ b/client.c @@ -254,6 +254,10 @@ manage(Window w, XWindowAttributes *wa) clients = c; settitle(c); + if(isvisible(c)) { + focus(NULL); + sel = c; + } arrange(NULL); XMapWindow(dpy, c->win); XMapWindow(dpy, c->twin);