Merge pull request #2216 from RedSoxFan/fix-2213

Fix swaybar teardown when workspace buttons hidden
This commit is contained in:
emersion 2018-07-07 09:52:33 +01:00 committed by GitHub
commit c523a14ae1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -497,7 +497,7 @@ void render_frame(struct swaybar *bar, struct swaybar_output *output) {
// different height than what we asked for // different height than what we asked for
wl_surface_commit(output->surface); wl_surface_commit(output->surface);
wl_display_roundtrip(bar->display); wl_display_roundtrip(bar->display);
} else { } else if (height > 0) {
// Replay recording into shm and send it off // Replay recording into shm and send it off
output->current_buffer = get_next_buffer(bar->shm, output->current_buffer = get_next_buffer(bar->shm,
output->buffers, output->buffers,