diff options
Diffstat (limited to 'sway/commands/bar/position.c')
-rw-r--r-- | sway/commands/bar/position.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sway/commands/bar/position.c b/sway/commands/bar/position.c index 4456d724..b207de0b 100644 --- a/sway/commands/bar/position.c +++ b/sway/commands/bar/position.c | |||
@@ -9,9 +9,6 @@ struct cmd_results *bar_cmd_position(int argc, char **argv) { | |||
9 | if ((error = checkarg(argc, "position", EXPECTED_EQUAL_TO, 1))) { | 9 | if ((error = checkarg(argc, "position", EXPECTED_EQUAL_TO, 1))) { |
10 | return error; | 10 | return error; |
11 | } | 11 | } |
12 | if (!config->current_bar) { | ||
13 | return cmd_results_new(CMD_FAILURE, "No bar defined."); | ||
14 | } | ||
15 | char *valid[] = { "top", "bottom" }; | 12 | char *valid[] = { "top", "bottom" }; |
16 | for (size_t i = 0; i < sizeof(valid) / sizeof(valid[0]); ++i) { | 13 | for (size_t i = 0; i < sizeof(valid) / sizeof(valid[0]); ++i) { |
17 | if (strcasecmp(valid[i], argv[0]) == 0) { | 14 | if (strcasecmp(valid[i], argv[0]) == 0) { |