From 4f13caaacb4064d560080e9063254e80f4cd6831 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Tue, 18 Nov 2014 10:29:06 -0500 Subject: [PATCH] rules: match titles only as prefixes --- dwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwm.c b/dwm.c index a6e4fc0..5e8179f 100644 --- a/dwm.c +++ b/dwm.c @@ -306,7 +306,7 @@ applyrules(Client *c) { for(i = 0; i < LENGTH(rules); i++) { r = &rules[i]; - if((!r->title || strstr(c->name, r->title)) + if((!r->title || c->name == strstr(c->name, r->title)) && (!r->class || strstr(class, r->class)) && (!r->instance || strstr(instance, r->instance))) { -- 1.7.10.4