summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjonsykkel <jonrevold@gmail.com>2021-01-06 13:43:25 +0100
committerjonsykkel <jonrevold@gmail.com>2021-01-06 13:43:25 +0100
commit3124eddce79bb91acdd4fc95511a9bbfe0cb20e0 (patch)
tree95c4ff994776de6457cb7db863e5cfcb68be938e
parent75f3a55287c157b3dbafcc9ee97b82a4977f9438 (diff)
downloaddwm-3124eddce79bb91acdd4fc95511a9bbfe0cb20e0.tar.gz
sel enpty
-rw-r--r--dwm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index c05a21c..8d0fbfe 100644
--- a/dwm.c
+++ b/dwm.c
@@ -758,13 +758,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);
}
}