diff options
-rw-r--r-- | sway/commands/output.c | 3 | ||||
-rw-r--r-- | sway/commands/output/background.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sway/commands/output.c b/sway/commands/output.c index a7d325ec..bc12310e 100644 --- a/sway/commands/output.c +++ b/sway/commands/output.c | |||
@@ -35,6 +35,9 @@ struct cmd_results *cmd_output(int argc, char **argv) { | |||
35 | config->handler_context.output_config = output; | 35 | config->handler_context.output_config = output; |
36 | 36 | ||
37 | while (argc > 0) { | 37 | while (argc > 0) { |
38 | config->handler_context.leftovers.argc = 0; | ||
39 | config->handler_context.leftovers.argv = NULL; | ||
40 | |||
38 | if (find_handler(*argv, output_handlers, sizeof(output_handlers))) { | 41 | if (find_handler(*argv, output_handlers, sizeof(output_handlers))) { |
39 | error = config_subcommand(argv, argc, output_handlers, | 42 | error = config_subcommand(argv, argc, output_handlers, |
40 | sizeof(output_handlers)); | 43 | sizeof(output_handlers)); |
diff --git a/sway/commands/output/background.c b/sway/commands/output/background.c index f039c9c9..0c5c164f 100644 --- a/sway/commands/output/background.c +++ b/sway/commands/output/background.c | |||
@@ -8,7 +8,7 @@ | |||
8 | #include "log.h" | 8 | #include "log.h" |
9 | #include "stringop.h" | 9 | #include "stringop.h" |
10 | 10 | ||
11 | static char *bg_options[] = { | 11 | static const char *bg_options[] = { |
12 | "stretch", | 12 | "stretch", |
13 | "center", | 13 | "center", |
14 | "fill", | 14 | "fill", |