aboutsummaryrefslogtreecommitdiffstats
path: root/swaybar/render.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-07-06 11:38:02 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-07-06 11:38:02 -0400
commit1b4c289482a2709ae0348b1e746d051070c75392 (patch)
tree0684ea11b4d102ea7e7c10410494d75fc5b38e7d /swaybar/render.c
parentMerge pull request #2182 from RyanDwyer/lockscreen-performance (diff)
downloadsway-1b4c289482a2709ae0348b1e746d051070c75392.tar.gz
sway-1b4c289482a2709ae0348b1e746d051070c75392.tar.zst
sway-1b4c289482a2709ae0348b1e746d051070c75392.zip
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) {
497 // different height than what we asked for 497 // different height than what we asked for
498 wl_surface_commit(output->surface); 498 wl_surface_commit(output->surface);
499 wl_display_roundtrip(bar->display); 499 wl_display_roundtrip(bar->display);
500 } else { 500 } else if (height > 0) {
501 // Replay recording into shm and send it off 501 // Replay recording into shm and send it off
502 output->current_buffer = get_next_buffer(bar->shm, 502 output->current_buffer = get_next_buffer(bar->shm,
503 output->buffers, 503 output->buffers,