summaryrefslogtreecommitdiffstats
path: root/sway/commands/bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/bar.c')
-rw-r--r--sway/commands/bar.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sway/commands/bar.c b/sway/commands/bar.c
index 9c7357dd..28699d7d 100644
--- a/sway/commands/bar.c
+++ b/sway/commands/bar.c
@@ -80,6 +80,14 @@ struct cmd_results *cmd_bar(int argc, char **argv) {
80 } 80 }
81 config->current_bar = bar; 81 config->current_bar = bar;
82 ++argv; --argc; 82 ++argv; --argc;
83 } else if (!config->reading && strcmp(argv[0], "mode") != 0 &&
84 strcmp(argv[0], "hidden_state") != 0) {
85 if (is_subcommand(argv[0])) {
86 return cmd_results_new(CMD_INVALID, "No bar defined.");
87 } else {
88 return cmd_results_new(CMD_INVALID,
89 "Unknown/invalid command '%s'", argv[1]);
90 }
83 } 91 }
84 92
85 if (!config->current_bar) { 93 if (!config->current_bar) {