mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-27 21:58:16 +01:00
parent
f92329701b
commit
1bf1d84b75
1 changed files with 4 additions and 0 deletions
|
@ -874,6 +874,10 @@ static struct cmd_results *cmd_move_to_position(int argc, char **argv) {
|
||||||
return cmd_results_new(CMD_INVALID, "Invalid x position specified");
|
return cmd_results_new(CMD_INVALID, "Invalid x position specified");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (argc < 1) {
|
||||||
|
return cmd_results_new(CMD_FAILURE, expected_position_syntax);
|
||||||
|
}
|
||||||
|
|
||||||
struct movement_amount ly = { .amount = 0, .unit = MOVEMENT_UNIT_INVALID };
|
struct movement_amount ly = { .amount = 0, .unit = MOVEMENT_UNIT_INVALID };
|
||||||
// Y direction
|
// Y direction
|
||||||
num_consumed_args = parse_movement_amount(argc, argv, &ly);
|
num_consumed_args = parse_movement_amount(argc, argv, &ly);
|
||||||
|
|
Loading…
Reference in a new issue