From aa613957d216e01bdb0f35b5080aa3e77184ca13 Mon Sep 17 00:00:00 2001 From: sewn Date: Sun, 30 Jun 2024 22:16:12 +0300 Subject: [PATCH] apply rule only if title and id exist and match for client --- dwl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dwl.c b/dwl.c index 9fb50a7..a4af553 100644 --- a/dwl.c +++ b/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;