From 1b4c289482a2709ae0348b1e746d051070c75392 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Fri, 6 Jul 2018 11:38:02 -0400 Subject: Fix swaybar teardown when workspace buttons hidden --- swaybar/render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swaybar/render.c') diff --git a/swaybar/render.c b/swaybar/render.c index efd3fdeb..2ebd338e 100644 --- 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, -- cgit v1.2.3