rename is_tag_match_rules() to tag_match_rule()
This commit is contained in:
parent
804033dbbe
commit
29740269ec
3
rules.c
3
rules.c
|
@ -87,7 +87,7 @@ client_match_rule(Client *c, Rule *r)
|
||||||
}
|
}
|
||||||
|
|
||||||
Bool
|
Bool
|
||||||
is_tag_match_rules(Tag *t, Rule *r)
|
tag_match_rule(Tag *t, Rule *r)
|
||||||
{
|
{
|
||||||
regmatch_t tmp;
|
regmatch_t tmp;
|
||||||
|
|
||||||
|
@ -97,7 +97,6 @@ is_tag_match_rules(Tag *t, Rule *r)
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
RuleFloat
|
RuleFloat
|
||||||
rules_get_float_from_str(const char *str)
|
rules_get_float_from_str(const char *str)
|
||||||
{
|
{
|
||||||
|
|
2
rules.h
2
rules.h
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
regex_t * rules_compile_regex(char *);
|
regex_t * rules_compile_regex(char *);
|
||||||
Bool client_match_rule(Client *, Rule *);
|
Bool client_match_rule(Client *, Rule *);
|
||||||
Bool is_tag_match_rules(Tag *, Rule *);
|
Bool tag_match_rule(Tag *, Rule *);
|
||||||
RuleFloat rules_get_float_from_str(const char *);
|
RuleFloat rules_get_float_from_str(const char *);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
2
tag.c
2
tag.c
|
@ -120,7 +120,7 @@ tag_client_with_rules(Client *c)
|
||||||
move_client_to_screen(c, r->screen, True);
|
move_client_to_screen(c, r->screen, True);
|
||||||
|
|
||||||
for(tag = globalconf.screens[c->screen].tags; tag; tag = tag->next)
|
for(tag = globalconf.screens[c->screen].tags; tag; tag = tag->next)
|
||||||
if(is_tag_match_rules(tag, r))
|
if(tag_match_rule(tag, r))
|
||||||
{
|
{
|
||||||
matched = True;
|
matched = True;
|
||||||
tag_client(c, tag);
|
tag_client(c, tag);
|
||||||
|
|
Loading…
Reference in New Issue