mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
Merge pull request #2609 from ianyfan/commands
commands: prevent running empty seat command
This commit is contained in:
commit
f7568e26e9
@ -14,7 +14,7 @@ static struct cmd_handler seat_handlers[] = {
|
||||
|
||||
struct cmd_results *cmd_seat(int argc, char **argv) {
|
||||
struct cmd_results *error = NULL;
|
||||
if ((error = checkarg(argc, "seat", EXPECTED_AT_LEAST, 1))) {
|
||||
if ((error = checkarg(argc, "seat", EXPECTED_AT_LEAST, 2))) {
|
||||
return error;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user