bar_tagicons.c (654B)
1 char * 2 tagicon(Monitor *m, int tag) 3 { 4 #if BAR_ALTTAGSDECORATION_PATCH 5 Client *c; 6 #endif // BAR_ALTTAGSDECORATION_PATCH 7 int tagindex = tag + NUMTAGS * m->num; 8 if (tagindex >= LENGTH(tagicons[DEFAULT_TAGS])) 9 tagindex = tagindex % LENGTH(tagicons[DEFAULT_TAGS]); 10 #if BAR_ALTTAGSDECORATION_PATCH 11 for (c = m->clients; c && (!(c->tags & 1 << tag) || HIDDEN(c)); c = c->next); 12 if (c) 13 return tagicons[ALT_TAGS_DECORATION][tagindex]; 14 #endif // BAR_ALTTAGSDECORATION_PATCH 15 #if BAR_ALTERNATIVE_TAGS_PATCH 16 if (m->alttag) 17 return tagicons[ALTERNATIVE_TAGS][tagindex]; 18 #endif // BAR_ALTERNATIVE_TAGS_PATCH 19 return tagicons[DEFAULT_TAGS][tagindex]; 20 } 21