diff options
Diffstat (limited to 'sway/commands/output')
-rw-r--r-- | sway/commands/output/mode.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sway/commands/output/mode.c b/sway/commands/output/mode.c index bcfce372..5b710713 100644 --- a/sway/commands/output/mode.c +++ b/sway/commands/output/mode.c | |||
@@ -12,6 +12,14 @@ struct cmd_results *output_cmd_mode(int argc, char **argv) { | |||
12 | 12 | ||
13 | struct output_config *output = config->handler_context.output_config; | 13 | struct output_config *output = config->handler_context.output_config; |
14 | 14 | ||
15 | if (strcmp(argv[0], "--custom") == 0) { | ||
16 | argv++; | ||
17 | argc--; | ||
18 | output->custom_mode = 1; | ||
19 | } else { | ||
20 | output->custom_mode = 0; | ||
21 | } | ||
22 | |||
15 | char *end; | 23 | char *end; |
16 | output->width = strtol(*argv, &end, 10); | 24 | output->width = strtol(*argv, &end, 10); |
17 | if (*end) { | 25 | if (*end) { |