aboutsummaryrefslogtreecommitdiff
path: root/swaybar/render.c
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2018-07-06 11:38:02 -0400
committerBrian Ashworth <bosrsf04@gmail.com>2018-07-06 11:38:02 -0400
commit1b4c289482a2709ae0348b1e746d051070c75392 (patch)
tree0684ea11b4d102ea7e7c10410494d75fc5b38e7d /swaybar/render.c
parent55c54bb63b82ee75e1893b48b3ce18f7317c6199 (diff)
Fix swaybar teardown when workspace buttons hidden
Diffstat (limited to 'swaybar/render.c')
-rw-r--r--swaybar/render.c2
1 files changed, 1 insertions, 1 deletions
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,