summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 533632a..979d4c6 100644
--- a/dwm.c
+++ b/dwm.c
@@ -259,7 +259,7 @@ applyrules(Client *c) {
259 XGetClassHint(dpy, c->win, &ch); 259 XGetClassHint(dpy, c->win, &ch);
260 for(i = 0; i < LENGTH(rules); i++) { 260 for(i = 0; i < LENGTH(rules); i++) {
261 r = &rules[i]; 261 r = &rules[i];
262 if(strstr(c->name, r->title) 262 if(r->title && strstr(c->name, r->title)
263 || (ch.res_class && r->class && strstr(ch.res_class, r->class)) 263 || (ch.res_class && r->class && strstr(ch.res_class, r->class))
264 || (ch.res_name && r->instance && strstr(ch.res_name, r->instance))) 264 || (ch.res_name && r->instance && strstr(ch.res_name, r->instance)))
265 { 265 {