X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/e316cf53f618dd1dd82828ca5c4e566968473f3a..0915da8842fd6e16b804ae3205ec2f6baaaa342c:/client.c?ds=sidebyside diff --git a/client.c b/client.c index 81f4280..4f2a69c 100644 --- a/client.c +++ b/client.c @@ -254,13 +254,12 @@ manage(Window w, XWindowAttributes *wa) clients = c; settitle(c); - if(isvisible(c)) - sel = c; - arrange(NULL); + ban(c); XMapWindow(dpy, c->win); XMapWindow(dpy, c->twin); if(isvisible(c)) focus(c); + arrange(NULL); } void