summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2022-04-17 10:33:26 +0200
committerbakkeby <[email protected]>2022-04-17 10:33:26 +0200
commit49fc922f0df673527d5779ce5cafa1f51832cdcc (patch)
tree93fd69614fb2c0ff7e9d8b491be73e0dbc30c7dd /patch
parentb2fbf08d3cab91e379463bc26d3f13033beb55bc (diff)
downloaddwm-flexipatch-49fc922f0df673527d5779ce5cafa1f51832cdcc.tar.gz
dwm-flexipatch-49fc922f0df673527d5779ce5cafa1f51832cdcc.zip
For all intensive purposes the monitor index is the same as monitor num, thus refactoring to use the latter
Diffstat (limited to 'patch')
-rw-r--r--patch/bar_tagicons.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/patch/bar_tagicons.c b/patch/bar_tagicons.c
index 235a6e2..fa1b96c 100644
--- a/patch/bar_tagicons.c
+++ b/patch/bar_tagicons.c
@@ -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