diff --git a/sway/commands/output.c b/sway/commands/output.c index f7e3372ce..f0466aa30 100644 --- a/sway/commands/output.c +++ b/sway/commands/output.c @@ -74,19 +74,7 @@ static struct cmd_results *cmd_output_position(struct output_config *output, char *end; output->x = strtol(argv[*i], &end, 10); if (*end) { - // Format is 1234,4321 - if (*end != ',') { - return cmd_results_new(CMD_INVALID, "output", - "Invalid position x."); - } - ++end; - output->y = strtol(end, &end, 10); - if (*end) { - return cmd_results_new(CMD_INVALID, "output", - "Invalid position y."); - } - } else { - // Format is 1234 4321 (legacy) + // Format is 1234 4321 if (++*i >= argc) { return cmd_results_new(CMD_INVALID, "output", "Missing position argument (y)."); diff --git a/sway/sway.5.txt b/sway/sway.5.txt index 039753493..1cd267c02 100644 --- a/sway/sway.5.txt +++ b/sway/sway.5.txt @@ -374,7 +374,7 @@ The default colors are: + output HDMI-A-1 mode 1920x1080@60Hz -**output** position|pos :: +**output** position|pos :: Configures the specified output to be arranged at the given position. **output** scale ::