aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/output
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2019-10-26 22:36:49 +0200
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-11-04 19:40:47 -0500
commit38b37247ff26b7c0926a8d31c1a91f818d1f5d84 (patch)
tree6589cc37ee6374ceca8cd2d42d1b95d26e82c1a8 /sway/commands/output
parentseatop_default: handle focus for xwayland_unmanaged views (diff)
downloadsway-38b37247ff26b7c0926a8d31c1a91f818d1f5d84.tar.gz
sway-38b37247ff26b7c0926a8d31c1a91f818d1f5d84.tar.zst
sway-38b37247ff26b7c0926a8d31c1a91f818d1f5d84.zip
Add --custom to `output mode` command
This forces to set the mode as a custom mode.
Diffstat (limited to 'sway/commands/output')
-rw-r--r--sway/commands/output/mode.c8
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) {