rename is_client_tag_from_rules() to is_tag_match_rules() and fix a potential error in it

This commit is contained in:
Julien Danjou 2007-11-13 22:41:23 +01:00
parent 2fb7b4d69a
commit 0a5d929801
2 changed files with 3 additions and 3 deletions

View File

@ -65,11 +65,11 @@ get_client_screen_from_rules(Client *c, Rule *rules)
}
Bool
is_client_tag_from_rules(Client *c, Tag *t, Rule *r)
is_tag_match_rules(Tag *t, Rule *r)
{
regmatch_t tmp;
if(!regexec(r->tagregex, t->name, 1, &tmp, 0))
if(r->tagregex && !regexec(r->tagregex, t->name, 1, &tmp, 0))
return True;
return False;

View File

@ -28,7 +28,7 @@
Bool client_match_rule(Client *, Rule *);
int get_client_screen_from_rules(Client *, Rule *);
Bool is_client_tag_from_rules(Client *, Tag *, Rule *);
Bool is_tag_match_rules(Tag *, Rule *);
#endif
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99