mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-28 02:34:15 +00:00
apply rule only if title and id exist and match for client
This commit is contained in:
parent
2b4893a0ad
commit
aa613957d2
4
dwl.c
4
dwl.c
@ -465,8 +465,8 @@ applyrules(Client *c)
|
|||||||
title = broken;
|
title = broken;
|
||||||
|
|
||||||
for (r = rules; r < END(rules); r++) {
|
for (r = rules; r < END(rules); r++) {
|
||||||
if ((!r->title || strstr(title, r->title))
|
if ((r->title && strstr(title, r->title))
|
||||||
&& (!r->id || strstr(appid, r->id))) {
|
|| (r->id && strstr(appid, r->id))) {
|
||||||
c->isfloating = r->isfloating;
|
c->isfloating = r->isfloating;
|
||||||
newtags |= r->tags;
|
newtags |= r->tags;
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user