mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-26 09:44:14 +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;
|
||||
|
||||
for (r = rules; r < END(rules); r++) {
|
||||
if ((!r->title || strstr(title, r->title))
|
||||
&& (!r->id || strstr(appid, r->id))) {
|
||||
if ((r->title && strstr(title, r->title))
|
||||
|| (r->id && strstr(appid, r->id))) {
|
||||
c->isfloating = r->isfloating;
|
||||
newtags |= r->tags;
|
||||
i = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user