diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-26 17:06:48 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-26 17:06:48 -0500 |
commit | 0c5b5476903dc0d64ef4b9f18da4a4fcf59e5b87 (patch) | |
tree | 43c3ebe3799615c3f4e08f04cbb962b9435a8f7b | |
parent | 89386d62d8c0d6a724d84b7f247b8031f8eebb13 (diff) |
Implement activemonitor
-rw-r--r-- | dwm.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -777,13 +777,12 @@ drawbar(Monitor *m) x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0); if ((w = m->ww - tw - x) > bh) { + drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]); if (m->sel) { - drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]); drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0); if (m->sel->isfloating) drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0); } else { - drw_setscheme(drw, scheme[SchemeNorm]); drw_rect(drw, x, 0, w, bh, 1, 1); } } |