From 5b9d000853e295222336a7b62801801d78118dd8 Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 19 Feb 2023 16:47:11 -0500 Subject: Fix bugs from status2d patch --- dwm.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dwm.c b/dwm.c index 1f4405b..60cdeb4 100644 --- a/dwm.c +++ b/dwm.c @@ -947,18 +947,15 @@ drawbar(Monitor *m) ch = *s; *s = '\0'; sw = TEXTW(text) - lrpad; - drw_text(drw, m->ww - statusw + x, 0, sw, bh, 0, text, 0); x += sw; *s = ch; text = s + 1; } } sw = TEXTW(text) - lrpad + 2; - drw_text(drw, m->ww - statusw + x, 0, sw, bh, 0, text, 0); + drw_text(drw, m->ww - statusw + x, 0, sw, bh, 0, "", 0); sw = statusw; - } - if (m == selmon) { /* status is only drawn on selected monitor */ - tw = m->ww - drawstatusbar(m, bh, stext); + tw = m->ww - drawstatusbar(m, bh, text); } for (c = m->clients; c; c = c->next) { -- cgit v1.2.3