Don't give up on tagrules until there's a non-nil and not "nil" tag string.

This commit is contained in:
Kris Maglione 2007-06-08 13:53:16 -04:00
parent 93aa9a876d
commit 304b408bab

View File

@ -930,7 +930,7 @@ apply_rules(Client *c) {
for(r=def.tagrules.rule; r; r=r->next)
if(!regexec(&r->regex, c->props, 1, &rm, 0)) {
apply_tags(c, r->value);
if(strcmp(c->tags, "nil"))
if(c->tags[0] && strcmp(c->tags, "nil"))
break;
}
if(c->tags[0] == '\0')