diff -r b9bb1d036bd0 -r 0c051f7b88e6 dwm.c --- a/dwm.c Thu May 15 10:47:26 2008 +0100 +++ b/dwm.c Thu May 15 10:51:37 2008 +0100 @@ -240,7 +240,7 @@ void applyrules(Client *c) { - unsigned int i, j; + unsigned int i; Bool matched = False; Rule *r; XClassHint ch = { 0 }; @@ -254,11 +254,7 @@ && (!r->instance || (ch.res_name && strstr(ch.res_name, r->instance)))) { c->isfloating = r->isfloating; if(r->tag) { - 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; + c->tags[idxoftag(r->tag)] = True; matched = True; } }