JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added heretag command which allows to tag a client of a foreign tag with current tag
[dwm.git] / client.c
index 522a425..166e979 100644 (file)
--- a/client.c
+++ b/client.c
@@ -66,8 +66,8 @@ focusnext(Arg *arg)
        if(!sel)
                return;
 
-       if(!(c = getnext(sel->next)))
-               c = getnext(clients);
+       if(!(c = getnext(sel->next, tsel)))
+               c = getnext(clients, tsel);
        if(c) {
                higher(c);
                c->revert = sel;
@@ -250,6 +250,7 @@ manage(Window w, XWindowAttributes *wa)
                ban(c);
                XMapRaised(dpy, c->win);
                XMapRaised(dpy, c->title);
+               XSync(dpy, False);
        }
 }
 
@@ -409,8 +410,8 @@ zoom(Arg *arg)
        if(!sel)
                return;
 
-       if(sel == getnext(clients) && sel->next)  {
-               if((c = getnext(sel->next)))
+       if(sel == getnext(clients, tsel) && sel->next)  {
+               if((c = getnext(sel->next, tsel)))
                        sel = c;
        }