diff options
Diffstat (limited to 'swaybar/bar.c')
-rw-r--r-- | swaybar/bar.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c index f12923a8..f1b42d2c 100644 --- a/swaybar/bar.c +++ b/swaybar/bar.c | |||
@@ -247,6 +247,8 @@ void bar_setup(struct bar *bar, const char *socket_path, const char *bar_id) { | |||
247 | 247 | ||
248 | /* set window height */ | 248 | /* set window height */ |
249 | set_window_height(bar_output->window, bar->config->height); | 249 | set_window_height(bar_output->window, bar->config->height); |
250 | |||
251 | bar_output->state = output; | ||
250 | } | 252 | } |
251 | /* spawn status command */ | 253 | /* spawn status command */ |
252 | spawn_status_cmd_proc(bar); | 254 | spawn_status_cmd_proc(bar); |
@@ -296,6 +298,11 @@ void bar_run(struct bar *bar) { | |||
296 | render(output, bar->config, bar->status); | 298 | render(output, bar->config, bar->status); |
297 | window_render(output->window); | 299 | window_render(output->window); |
298 | wl_display_flush(output->registry->display); | 300 | wl_display_flush(output->registry->display); |
301 | #ifdef ENABLE_TRAY | ||
302 | output->active = true; | ||
303 | } else { | ||
304 | output->active = false; | ||
305 | #endif | ||
299 | } | 306 | } |
300 | } | 307 | } |
301 | } | 308 | } |