equal
deleted
inserted
replaced
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); |