X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=tag.c;h=72d87d33454c027037a534f48cb4469cb2effec5;hb=3d73084b5ef25bca354b32e049b2904aa9519c09;hp=015a06a4f047db019cec7a2a7c3444b99ca9d2fb;hpb=12b1d439e46e7881942a6d378b3b874c4c9f7555;p=dwm.git diff --git a/tag.c b/tag.c index 015a06a..72d87d3 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(); }