From 512a656ddddc588b2d406f344cfc160c9c2c81b5 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Sat, 22 Aug 2020 09:26:56 +0200 Subject: [PATCH] Added logic to auto-hide bars if nothing is drawn on them (e.g. for standalone bars that only show certain clients) --- patch/bar_status2d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch/bar_status2d.c b/patch/bar_status2d.c index 744fa18..88c3031 100644 --- a/patch/bar_status2d.c +++ b/patch/bar_status2d.c @@ -164,7 +164,7 @@ drawstatusbar(int x, char* stext) free(p); drw_setscheme(drw, scheme[SchemeNorm]); - return i; + return len - 1; } int