diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-06-03 10:29:00 -0400 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2018-06-03 10:29:00 -0400 |
commit | 51fa988be9203dd81fd0897611a854ef9f4b4f5f (patch) | |
tree | 840d242a51352f9052c465ae53765bc85200969f | |
parent | 5ea4a4d3eec897b915003ad7fc2b2e274d1a59c1 (diff) | |
download | sway-51fa988be9203dd81fd0897611a854ef9f4b4f5f.tar.xz |
Address review comments for output subcommands
-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) { 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)); 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 @@ #include "log.h" #include "stringop.h" -static char *bg_options[] = { +static const char *bg_options[] = { "stretch", "center", "fill", |