Fix icon updating on secondary outputs

This commit is contained in:
gnidorah 2017-11-22 01:47:05 +03:00 committed by Calvin Lee
parent cbd0c49a8c
commit 87a55dfe5c
3 changed files with 26 additions and 1 deletions

View file

@ -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;
}
}
}