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) { config->handler_context.output_config = output; while (argc > 0) { + config->handler_context.leftovers.argc = 0; + config->handler_context.leftovers.argv = NULL; + if (find_handler(*argv, output_handlers, sizeof(output_handlers))) { error = config_subcommand(argv, argc, output_handlers, sizeof(output_handlers)); |