mirror of
https://github.com/swaywm/sway.git
synced 2026-05-04 06:46:25 -04:00
remove output pos <X,Y> syntax
This commit is contained in:
parent
82cb379727
commit
73eb49cf81
2 changed files with 9 additions and 23 deletions
|
|
@ -73,20 +73,7 @@ static struct cmd_results *cmd_output_position(struct output_config *output,
|
||||||
|
|
||||||
char *end;
|
char *end;
|
||||||
output->x = strtol(argv[*i], &end, 10);
|
output->x = strtol(argv[*i], &end, 10);
|
||||||
if (*end) {
|
// Format is 1234 4321
|
||||||
// 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)
|
|
||||||
if (++*i >= argc) {
|
if (++*i >= argc) {
|
||||||
return cmd_results_new(CMD_INVALID, "output",
|
return cmd_results_new(CMD_INVALID, "output",
|
||||||
"Missing position argument (y).");
|
"Missing position argument (y).");
|
||||||
|
|
@ -96,7 +83,6 @@ static struct cmd_results *cmd_output_position(struct output_config *output,
|
||||||
return cmd_results_new(CMD_INVALID, "output",
|
return cmd_results_new(CMD_INVALID, "output",
|
||||||
"Invalid position y.");
|
"Invalid position y.");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -374,7 +374,7 @@ The default colors are:
|
||||||
+
|
+
|
||||||
output HDMI-A-1 mode 1920x1080@60Hz
|
output HDMI-A-1 mode 1920x1080@60Hz
|
||||||
|
|
||||||
**output** <name> position|pos <X,Y>::
|
**output** <name> position|pos <X> <Y>::
|
||||||
Configures the specified output to be arranged at the given position.
|
Configures the specified output to be arranged at the given position.
|
||||||
|
|
||||||
**output** <name> scale <I>::
|
**output** <name> scale <I>::
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue