tag.c
changeset 757 22dfaeb82491
parent 742 39b941868ce3
child 761 4e835c2a7a12
equal deleted inserted replaced
756:df3ea2f76f54 757:22dfaeb82491
    76 	unsigned int i, j;
    76 	unsigned int i, j;
    77 	regmatch_t tmp;
    77 	regmatch_t tmp;
    78 	Bool matched = trans != NULL;
    78 	Bool matched = trans != NULL;
    79 	XClassHint ch = { 0 };
    79 	XClassHint ch = { 0 };
    80 
    80 
    81 	if(matched) {
    81 	if(matched)
    82 		for(i = 0; i < ntags; i++)
    82 		for(i = 0; i < ntags; i++)
    83 			c->tags[i] = trans->tags[i];
    83 			c->tags[i] = trans->tags[i];
    84 	}
       
    85 	else {
    84 	else {
    86 		XGetClassHint(dpy, c->win, &ch);
    85 		XGetClassHint(dpy, c->win, &ch);
    87 		snprintf(prop, sizeof prop, "%s:%s:%s",
    86 		snprintf(prop, sizeof prop, "%s:%s:%s",
    88 				ch.res_class ? ch.res_class : "",
    87 				ch.res_class ? ch.res_class : "",
    89 				ch.res_name ? ch.res_name : "", c->name);
    88 				ch.res_name ? ch.res_name : "", c->name);