summaryrefslogtreecommitdiff
path: root/tag.c
diff options
context:
space:
mode:
Diffstat (limited to 'tag.c')
-rw-r--r--tag.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/tag.c b/tag.c
index 015a06a4..72d87d33 100644
--- a/tag.c
+++ b/tag.c
@@ -57,14 +57,12 @@ dofloat(Arg *arg)
else
ban(c);
}
- if(sel && !sel->tags[tsel]) {
- if((sel = getnext(clients))) {
- higher(sel);
- focus(sel);
- }
- else
- XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
+ if((sel = getnext(clients))) {
+ higher(sel);
+ focus(sel);
}
+ else
+ XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
drawall();
}
@@ -122,14 +120,12 @@ dotile(Arg *arg)
else
ban(c);
}
- if(!sel || (sel && !sel->tags[tsel])) {
- if((sel = getnext(clients))) {
- higher(sel);
- focus(sel);
- }
- else
- XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
+ if((sel = getnext(clients))) {
+ higher(sel);
+ focus(sel);
}
+ else
+ XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
drawall();
}