summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-02-01 04:38:29 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-02-01 04:38:29 -0500
commite915e3178ba8f51663140b40721cb2cd28a668a9 (patch)
tree17b8561864272da4d517b5f993574691484e4c4b
parente0d4e227f4c66b862ab1fd120ee1b43368327b31 (diff)
Reimplement corner tag indicator for clients
-rw-r--r--dwm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index e0e24bd..ac215d7 100644
--- a/dwm.c
+++ b/dwm.c
@@ -817,6 +817,10 @@ drawbar(Monitor *m)
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 (occ & 1 << i)
+ drw_rect(drw, x + boxs, boxs, boxw, boxw,
+ m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
+ urg & 1 << i);
x += w;
}
w = TEXTW(m->ltsymbol);