summaryrefslogtreecommitdiffhomepage
path: root/patch/bar_status2d.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-08-22 09:26:56 +0200
committerbakkeby <[email protected]>2020-08-22 09:26:56 +0200
commit512a656ddddc588b2d406f344cfc160c9c2c81b5 (patch)
tree5707fb064a170cf819f5bda8d309059086b07b7f /patch/bar_status2d.c
parenteb782ae920ffa0cfef8234a6749e7dd47df579c6 (diff)
downloaddwm-flexipatch-512a656ddddc588b2d406f344cfc160c9c2c81b5.tar.gz
dwm-flexipatch-512a656ddddc588b2d406f344cfc160c9c2c81b5.zip
Added logic to auto-hide bars if nothing is drawn on them (e.g. for standalone bars that only show certain clients)
Diffstat (limited to 'patch/bar_status2d.c')
-rw-r--r--patch/bar_status2d.c2
1 files changed, 1 insertions, 1 deletions
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