summaryrefslogtreecommitdiff
path: root/tag.c
diff options
context:
space:
mode:
Diffstat (limited to 'tag.c')
-rw-r--r--tag.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tag.c b/tag.c
index 841d0fc5..cdb0f524 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