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

@ -31,8 +31,8 @@ struct cmd_results *bar_cmd_tray_output(int argc, char **argv) {
} else {
wlr_log(WLR_DEBUG, "Showing tray on output '%s' for bar: %s", argv[0],
config->current_bar->id);
list_add(outputs, strdup(argv[0]));
}
list_add(outputs, strdup(argv[0]));
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
#else