From: Jason Woofenden Date: Tue, 18 Nov 2014 15:29:06 +0000 (-0500) Subject: rules: match titles only as prefixes X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=commitdiff_plain;h=4f13caaacb4064d560080e9063254e80f4cd6831 rules: match titles only as prefixes --- 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))) {