minor bugfix in applyrules fb5f99d9
anselm@anselm1 · 2008-03-17 23:45 1 file(s) · +1 −1
dwm.c +1 −1
259 259
	XGetClassHint(dpy, c->win, &ch);
260 260
	for(i = 0; i < LENGTH(rules); i++) {
261 261
		r = &rules[i];
262 -
		if(strstr(c->name, r->title)
262 +
		if(r->title && strstr(c->name, r->title)
263 263
		|| (ch.res_class && r->class && strstr(ch.res_class, r->class))
264 264
		|| (ch.res_name && r->instance && strstr(ch.res_name, r->instance)))
265 265
		{