JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
still something wrong with reorder()
[dwm.git] / tag.c
diff --git a/tag.c b/tag.c
index a3dc6ab..a2e1c89 100644 (file)
--- a/tag.c
+++ b/tag.c
@@ -106,6 +106,8 @@ settags(Client *c)
        if(!matched)
                for(i = 0; i < ntags; i++)
                        c->tags[i] = seltag[i];
+       for(i = 0; i < ntags && !c->tags[i]; i++);
+       c->weight = i;
 }
 
 void