JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
applied the saner patch (removed the pathetic one)
[dwm.git] / tag.c
diff --git a/tag.c b/tag.c
index 01979d5..edf68c6 100644 (file)
--- a/tag.c
+++ b/tag.c
@@ -41,7 +41,7 @@ appendtag(Arg *arg)
                return;
 
        sel->tags[arg->i] = True;
-       arrange(NULL);
+       settitle(sel);
 }
 
 void
@@ -211,8 +211,10 @@ restack()
                        else
                                m++;
                }
-
-       n = 2 * (f + m);
+       if(!(n = 2 * (f + m))) {
+               drawstatus();
+               return;
+       }
        if(nwins < n) {
                nwins = n;
                wins = erealloc(wins, nwins * sizeof(Window));