For all intensive purposes the monitor index is the same as monitor num, thus refactoring to use the latter

This commit is contained in:
bakkeby
2022-04-17 10:33:26 +02:00
parent b2fbf08d3c
commit 49fc922f0d
2 changed files with 7 additions and 10 deletions

View File

@ -4,7 +4,7 @@ tagicon(Monitor *m, int tag)
#if BAR_ALTTAGSDECORATION_PATCH
Client *c;
#endif // BAR_ALTTAGSDECORATION_PATCH
int tagindex = tag + NUMTAGS * m->index;
int tagindex = tag + NUMTAGS * m->num;
if (tagindex >= LENGTH(tagicons[DEFAULT_TAGS]))
tagindex = tagindex % LENGTH(tagicons[DEFAULT_TAGS]);
#if BAR_ALTTAGSDECORATION_PATCH