summaryrefslogtreecommitdiff
path: root/dwm/dwm.c
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-24 23:53:38 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-24 23:53:38 +0900
commit4518c1defd9c4f168688b1fc0bac09a101c581cb (patch)
treecc8d035fdfaac0b38b4a395490e890ffacbbbd83 /dwm/dwm.c
parentc3fccc77fb43e0562d661a0fc4c362797f59884f (diff)
modified dwm/config.def.h, modified dwm/dwm.c
Diffstat (limited to 'dwm/dwm.c')
-rw-r--r--dwm/dwm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dwm/dwm.c b/dwm/dwm.c
index ae191e3..070f2f3 100644
--- a/dwm/dwm.c
+++ b/dwm/dwm.c
@@ -548,9 +548,9 @@ applyrules(Client *c)
for (i = 0; i < LENGTH(rules); i++) {
r = &rules[i];
- if ((!r->title || strstr(c->name, r->title))
- && (!r->class || strstr(class, r->class))
- && (!r->instance || strstr(instance, r->instance)))
+ if ((!r->title || strcmp(c->name, r->title) == 0)
+ && (!r->class || strcmp(class, r->class) == 0)
+ && (!r->instance || strcmp(instance,r->instance) == 0))
{
c->isterminal = r->isterminal;
c->noswallow = r->noswallow;