rename is_client_tag_from_rules() to is_tag_match_rules() and fix a potential error in it
This commit is contained in:
parent
2fb7b4d69a
commit
0a5d929801
4
rules.c
4
rules.c
|
@ -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;
|
||||
|
|
2
rules.h
2
rules.h
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue