commit 304b408babfd5d7b8df97d4907752c12b3dac7df
parent 93aa9a876da1c1a05183bb87bf2c231256c38139
Author: Kris Maglione <jg@suckless.org>
Date: Fri, 8 Jun 2007 13:53:16 -0400
Don't give up on tagrules until there's a non-nil and not "nil" tag string.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/wmii/client.c b/cmd/wmii/client.c
@@ -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')