diff options
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c index 4e9630ef..b40cdb6a 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -1785,6 +1785,10 @@ static struct cmd_results *bar_cmd_output(int argc, char **argv) { const char *output = argv[0]; list_t *outputs = config->current_bar->outputs; + if (!outputs) { + outputs = create_list(); + config->current_bar->outputs = outputs; + } int i; int add_output = 1; |