diff options
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/bar.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c index 49a698b7..f1b42d2c 100644 --- a/swaybar/bar.c +++ b/swaybar/bar.c | |||
@@ -295,12 +295,14 @@ void bar_run(struct bar *bar) { | |||
295 | for (i = 0; i < bar->outputs->length; ++i) { | 295 | for (i = 0; i < bar->outputs->length; ++i) { |
296 | struct output *output = bar->outputs->items[i]; | 296 | struct output *output = bar->outputs->items[i]; |
297 | if (window_prerender(output->window) && output->window->cairo) { | 297 | if (window_prerender(output->window) && output->window->cairo) { |
298 | output->active = true; | ||
299 | render(output, bar->config, bar->status); | 298 | render(output, bar->config, bar->status); |
300 | window_render(output->window); | 299 | window_render(output->window); |
301 | wl_display_flush(output->registry->display); | 300 | wl_display_flush(output->registry->display); |
301 | #ifdef ENABLE_TRAY | ||
302 | output->active = true; | ||
302 | } else { | 303 | } else { |
303 | output->active = false; | 304 | output->active = false; |
305 | #endif | ||
304 | } | 306 | } |
305 | } | 307 | } |
306 | } | 308 | } |