From 6cd92b193cc3c8e011d2b29c536737d6a2a8c727 Mon Sep 17 00:00:00 2001 From: Ian Fan Date: Sat, 8 Sep 2018 19:51:38 +0100 Subject: commands: prevent running empty seat command --- sway/commands/seat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/commands/seat.c b/sway/commands/seat.c index 5e3c0bd0..5abb19b0 100644 --- a/sway/commands/seat.c +++ b/sway/commands/seat.c @@ -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; } -- cgit v1.2.3-54-g00ecf