commit c523a14ae1f82958d42b20e90363f41c7a5f227a
parent 305fac293abf490d8c08eff372527b6892015703
Author: emersion <contact@emersion.fr>
Date: Sat, 7 Jul 2018 09:52:33 +0100
Merge pull request #2216 from RedSoxFan/fix-2213
Fix swaybar teardown when workspace buttons hidden
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/swaybar/render.c b/swaybar/render.c
@@ -497,7 +497,7 @@ void render_frame(struct swaybar *bar, struct swaybar_output *output) {
// different height than what we asked for
wl_surface_commit(output->surface);
wl_display_roundtrip(bar->display);
- } else {
+ } else if (height > 0) {
// Replay recording into shm and send it off
output->current_buffer = get_next_buffer(bar->shm,
output->buffers,