aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-07-07 09:52:33 +0100
committerGitHub <noreply@github.com>2018-07-07 09:52:33 +0100
commitc523a14ae1f82958d42b20e90363f41c7a5f227a (patch)
tree7d8a062aeb57dc64ee768a1f5e2693a37a22ceec /swaybar
parent305fac293abf490d8c08eff372527b6892015703 (diff)
parent1b4c289482a2709ae0348b1e746d051070c75392 (diff)
Merge pull request #2216 from RedSoxFan/fix-2213
Fix swaybar teardown when workspace buttons hidden
Diffstat (limited to 'swaybar')
-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,