diff options
Diffstat (limited to 'sway/commands/output.c')
-rw-r--r-- | sway/commands/output.c | 3 |
1 files changed, 3 insertions, 0 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)); |