swaybar: do not create tray if hidden

This commit is contained in:
Ian Fan 2018-12-11 16:27:39 +00:00
parent 2fd41fe9c8
commit f33b5c5223
4 changed files with 6 additions and 2 deletions

View file

@ -371,7 +371,9 @@ bool bar_setup(struct swaybar *bar, const char *socket_path) {
assert(pointer->cursor_surface);
#if HAVE_TRAY
bar->tray = create_tray(bar);
if (!bar->config->tray_hidden) {
bar->tray = create_tray(bar);
}
#endif
if (bar->config->workspace_buttons) {