JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
rules: match titles only as prefixes
authorJason Woofenden <jason@jasonwoof.com>
Tue, 18 Nov 2014 15:29:06 +0000 (10:29 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Tue, 18 Nov 2014 15:29:06 +0000 (10:29 -0500)
dwm.c

diff --git a/dwm.c b/dwm.c
index a6e4fc0..5e8179f 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -306,7 +306,7 @@ applyrules(Client *c) {
 
        for(i = 0; i < LENGTH(rules); i++) {
                r = &rules[i];
 
        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)))
                {
                && (!r->class || strstr(class, r->class))
                && (!r->instance || strstr(instance, r->instance)))
                {