minor bugfix in applyrules
authoranselm@anselm1
Mon, 17 Mar 2008 23:45:46 +0000
changeset 1154 88e144ce6527
parent 1153 14be7ab52d28
child 1155 25e7987c7b18
minor bugfix in applyrules
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)))
 		{