From: arg@10ksloc.org Date: Fri, 4 Aug 2006 16:17:02 +0000 (+0200) Subject: fixed view-change bug reported on the list X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=commitdiff_plain;h=3d73084b5ef25bca354b32e049b2904aa9519c09 fixed view-change bug reported on the list --- 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(); }