diff options
author | 2017-11-22 09:04:46 +0300 | |
---|---|---|
committer | 2017-12-29 12:11:51 -0700 | |
commit | 4d34bc393e7b144fbc105537f17bee329c44814d (patch) | |
tree | ed17f848e7ac95c919d23424671a8a8ad5651a86 /swaybar/bar.c | |
parent | Fix icon updating on secondary outputs (diff) | |
download | sway-4d34bc393e7b144fbc105537f17bee329c44814d.tar.gz sway-4d34bc393e7b144fbc105537f17bee329c44814d.tar.zst sway-4d34bc393e7b144fbc105537f17bee329c44814d.zip |
Keep tray separate
Diffstat (limited to 'swaybar/bar.c')
-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 | } |