equal
deleted
inserted
replaced
257 |
257 |
258 /* rule matching */ |
258 /* rule matching */ |
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 { |
266 c->isfloating = r->isfloating; |
266 c->isfloating = r->isfloating; |
267 if(r->tag) { |
267 if(r->tag) { |