# HG changeset patch # User anselm@anselm1 # Date 1205797546 0 # Node ID 88e144ce65276a843a1746da28e9b1ca684ee1c7 # Parent 14be7ab52d28cb04a51ecd16509e20f2548993b6 minor bugfix in applyrules diff -r 14be7ab52d28 -r 88e144ce6527 dwm.c --- a/dwm.c Mon Mar 17 17:33:25 2008 +0000 +++ b/dwm.c Mon Mar 17 23:45:46 2008 +0000 @@ -259,7 +259,7 @@ XGetClassHint(dpy, c->win, &ch); for(i = 0; i < LENGTH(rules); i++) { r = &rules[i]; - if(strstr(c->name, r->title) + if(r->title && strstr(c->name, r->title) || (ch.res_class && r->class && strstr(ch.res_class, r->class)) || (ch.res_name && r->instance && strstr(ch.res_name, r->instance))) {