mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-04-05 07:15:31 -04:00
apply rule only if title and id exist and match for client
This commit is contained in:
parent
2b4893a0ad
commit
aa613957d2
1 changed files with 2 additions and 2 deletions
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…
Add table
Add a link
Reference in a new issue