X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/2c0d1cc87bf084ed3f1cdb4be881fb4f64f5773a..57e6e3bb80b5fc4709de3f8b716a8b8065897c7a:/client.c diff --git a/client.c b/client.c index 8d5ea30..6a231b9 100644 --- a/client.c +++ b/client.c @@ -262,11 +262,13 @@ manage(Window w, XWindowAttributes *wa) c->maxw == c->minw && c->maxh == c->minh); settitle(c); + if(isvisible(c)) + sel = c; + arrange(NULL); XMapWindow(dpy, c->win); XMapWindow(dpy, c->title); if(isvisible(c)) focus(c); - arrange(NULL); } void