diff options
| author | Drew DeVault <sir@cmpwn.com> | 2017-12-29 14:24:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-29 14:24:23 -0500 |
| commit | 1e87c90923eef75b7d032322dfef38def944c2bb (patch) | |
| tree | ed17f848e7ac95c919d23424671a8a8ad5651a86 /swaybar/bar.c | |
| parent | d85ad05fa857cd7d7af2c8e2c33616d7895e1955 (diff) | |
| parent | 4d34bc393e7b144fbc105537f17bee329c44814d (diff) | |
Merge pull request #1431 from 4e554c4c/sni_sucks
Support libappindicator
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) { /* set window height */ set_window_height(bar_output->window, bar->config->height); + + bar_output->state = output; } /* spawn status command */ spawn_status_cmd_proc(bar); @@ -296,6 +298,11 @@ void bar_run(struct bar *bar) { render(output, bar->config, bar->status); window_render(output->window); wl_display_flush(output->registry->display); +#ifdef ENABLE_TRAY + output->active = true; + } else { + output->active = false; +#endif } } } |
