From 98ad3780b8da50aa70106bc01609a41289e70eda Mon Sep 17 00:00:00 2001 From: jeron Date: Tue, 26 Dec 2023 20:22:13 -0300 Subject: [PATCH] Fix status bar background color I don't know if this is the best way to do it but this one-liner makes it look exactly like dwm's. Co-authored-by: Raphael Robatsch --- src/bar.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bar.cpp b/src/bar.cpp index b6331dc..a48f06e 100644 --- a/src/bar.cpp +++ b/src/bar.cpp @@ -306,7 +306,11 @@ void Bar::renderStatus() cairo_fill(_painter); _x = start; - renderComponent(_statusCmp); + setColorScheme(colorInactive, false); + if (_statusCmp.width() > 0) + { + renderComponent(_statusCmp); + } } void Bar::setTagColorScheme(const Tag& t)