dwm.c
changeset 1197 b9bb1d036bd0
parent 1196 58a67fab8143
child 1198 0c051f7b88e6
--- a/dwm.c	Wed May 14 11:24:35 2008 +0100
+++ b/dwm.c	Thu May 15 10:47:26 2008 +0100
@@ -240,7 +240,7 @@
 
 void
 applyrules(Client *c) {
-	unsigned int i;
+	unsigned int i, j;
 	Bool matched = False;
 	Rule *r;
 	XClassHint ch = { 0 };
@@ -254,7 +254,11 @@
 		&& (!r->instance || (ch.res_name && strstr(ch.res_name, r->instance)))) {
 			c->isfloating = r->isfloating;
 			if(r->tag) {
-				c->tags[idxoftag(r->tag)] = True;
+				if(r->tag[0] == '*' && r->tag[1] == 0)
+					for(j = 0; j < LENGTH(tags); i++)
+						c->tags[j] = True;
+				else
+					c->tags[idxoftag(r->tag)] = True;
 				matched = True;
 			}
 		}