summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch')
-rw-r--r--patch/bar_taglabels.c4
-rw-r--r--patch/bar_tags.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/patch/bar_taglabels.c b/patch/bar_taglabels.c
index f9c3cf8..9e6d441 100644
--- a/patch/bar_taglabels.c
+++ b/patch/bar_taglabels.c
@@ -63,6 +63,10 @@ draw_taglabels(Bar *bar, BarArg *a)
w = TEXTW(m->taglabel[i]);
drw_text(drw, x, a->y, w, a->h, lrpad / 2, m->taglabel[i], invert, False);
drawindicator(m, NULL, occ, x, a->y, w, a->h, i, -1, invert, tagindicatortype);
+ #if BAR_UNDERLINETAGS_PATCH
+ if (ulineall || m->tagset[m->seltags] & 1 << i)
+ drw_rect(drw, x + ulinepad, bh - ulinestroke - ulinevoffset, w - (ulinepad * 2), ulinestroke, 1, 0);
+ #endif // BAR_UNDERLINETAGS_PATCH
x += w;
}
diff --git a/patch/bar_tags.c b/patch/bar_tags.c
index c00818d..c618ff5 100644
--- a/patch/bar_tags.c
+++ b/patch/bar_tags.c
@@ -57,6 +57,10 @@ draw_tags(Bar *bar, BarArg *a)
]);
drw_text(drw, x, a->y, w, a->h, lrpad / 2, icon, invert, False);
drawindicator(m, NULL, occ, x, a->y, w, a->h, i, -1, invert, tagindicatortype);
+ #if BAR_UNDERLINETAGS_PATCH
+ if (ulineall || m->tagset[m->seltags] & 1 << i)
+ drw_rect(drw, x + ulinepad, bh - ulinestroke - ulinevoffset, w - (ulinepad * 2), ulinestroke, 1, 0);
+ #endif // BAR_UNDERLINETAGS_PATCH
x += w;
}