diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-07-06 11:38:02 -0400 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2018-07-06 11:38:02 -0400 |
commit | 1b4c289482a2709ae0348b1e746d051070c75392 (patch) | |
tree | 0684ea11b4d102ea7e7c10410494d75fc5b38e7d /swaybar/render.c | |
parent | Merge pull request #2182 from RyanDwyer/lockscreen-performance (diff) | |
download | sway-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.c | 2 |
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, |