summaryrefslogtreecommitdiffstats
path: root/tag.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tag.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tag.c b/tag.c
index a718ebd..4b6d513 100644
--- a/tag.c
+++ b/tag.c
@@ -47,7 +47,9 @@ dofloat(Arg *arg)
47 else 47 else
48 ban(c); 48 ban(c);
49 } 49 }
50 if((sel = getnext(clients))) { 50 if(!sel || !isvisible(sel))
51 sel = getnext(clients);
52 if(sel) {
51 focus(sel); 53 focus(sel);
52 restack(); 54 restack();
53 } 55 }
@@ -111,7 +113,9 @@ dotile(Arg *arg)
111 else 113 else
112 ban(c); 114 ban(c);
113 } 115 }
114 if((sel = getnext(clients))) 116 if(!sel || !isvisible(sel))
117 sel = getnext(clients);
118 if(sel)
115 focus(sel); 119 focus(sel);
116 else 120 else
117 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); 121 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);