diff options
| author | gnidorah <gnidorah@users.noreply.github.com> | 2017-11-22 01:47:05 +0300 |
|---|---|---|
| committer | Calvin Lee <cyrus296@gmail.com> | 2017-12-29 12:11:51 -0700 |
| commit | 87a55dfe5cd6805906fc08f3f03083a2649e84a0 (patch) | |
| tree | a5e09e32b8016931f663425437dcac376858e1bf /swaybar/bar.c | |
| parent | cbd0c49a8cf5a11d1bcc27629a7a71f7fb9d9df2 (diff) | |
Fix icon updating on secondary outputs
Diffstat (limited to 'swaybar/bar.c')
| -rw-r--r-- | swaybar/bar.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c index 9cd17303..49a698b7 100644 --- a/swaybar/bar.c +++ b/swaybar/bar.c @@ -295,9 +295,12 @@ void bar_run(struct bar *bar) { for (i = 0; i < bar->outputs->length; ++i) { struct output *output = bar->outputs->items[i]; if (window_prerender(output->window) && output->window->cairo) { + output->active = true; render(output, bar->config, bar->status); window_render(output->window); wl_display_flush(output->registry->display); + } else { + output->active = false; } } } |
