aboutsummaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index 9faa6bd..a4659aa 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1113,6 +1113,7 @@ dirtomon(int dir)
void
drawbar(Monitor *m)
{
+ int indn;
int x, w, tw = 0, stw = 0;
int tlpad;
int boxs = drw->fonts->h / 9;
@@ -1145,9 +1146,20 @@ drawbar(Monitor *m)
if (!(occ & 1 << i || m->tagset[m->seltags] & 1 << i))
continue;
+ indn = 0;
w = TEXTW(tags[i]);
drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]);
drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i);
+
+ if (enableclientindicators) {
+ for (c = m->clients; c; c = c->next) {
+ if (c->tags & (1 << i)) {
+ drw_rect(drw, x, 1 + (indn * 2), selmon->sel == c ? 6 : 1, 1, 1, urg & 1 << i);
+ indn++;
+ }
+ }
+ }
+
x += w;
}
w = TEXTW(m->ltsymbol);