apply rule only if title and id exist and match for client

This commit is contained in:
sewn 2024-06-30 22:16:12 +03:00
parent 2b4893a0ad
commit aa613957d2
No known key found for this signature in database

4
dwl.c
View File

@ -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;