X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/a20b10d01fab9e844ba7cd2cf694b45f61b89f7c..08d85d6d66bc4493414d76e470e473fa689c5990:/tag.c?ds=sidebyside diff --git a/tag.c b/tag.c index 841d0fc..cdb0f52 100644 --- a/tag.c +++ b/tag.c @@ -49,12 +49,11 @@ dofloat(Arg *arg) } if(!sel || !isvisible(sel)) sel = getnext(clients); - if(sel) { + if(sel) focus(sel); - restack(); - } else XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); + restack(); } void