dwm.c
changeset 1154 88e144ce6527
parent 1152 960659820908
child 1155 25e7987c7b18
equal deleted inserted replaced
1153:14be7ab52d28 1154:88e144ce6527
   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) {