X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=client.c;h=81f4280a4aab62861a5f32e572b8aae756b65e2f;hb=e316cf53f618dd1dd82828ca5c4e566968473f3a;hp=8a8a99eab90ca39d53c48c031ffbacdf159ae16e;hpb=c107db57db9529c699e6aa5fc1c31a37be06f94e;p=dwm.git diff --git a/client.c b/client.c index 8a8a99e..81f4280 100644 --- 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);