aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/fullscreen.c
diff options
context:
space:
mode:
authorIan Fan <ianfan0@gmail.com>2018-10-23 10:40:03 +0100
committerIan Fan <ianfan0@gmail.com>2018-10-23 10:51:54 +0100
commit9227cb7d673b012a0c6730800d528f9d729972b6 (patch)
tree32f4a9782328486f529c09fe2bb8092c25b9993d /sway/commands/fullscreen.c
parent000d96e52539fd6b8ecf6f6d0d399a1bedbbb9d9 (diff)
commands: replace EXPECTED_LESS_THAN with EXPECTED_AT_MOST
This makes it a bit more obvious what the expected number of arguments is.
Diffstat (limited to 'sway/commands/fullscreen.c')
-rw-r--r--sway/commands/fullscreen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/fullscreen.c b/sway/commands/fullscreen.c
index 22d747b9..0204a73c 100644
--- a/sway/commands/fullscreen.c
+++ b/sway/commands/fullscreen.c
@@ -9,7 +9,7 @@
struct cmd_results *cmd_fullscreen(int argc, char **argv) {
struct cmd_results *error = NULL;
- if ((error = checkarg(argc, "fullscreen", EXPECTED_LESS_THAN, 2))) {
+ if ((error = checkarg(argc, "fullscreen", EXPECTED_AT_MOST, 1))) {
return error;
}
struct sway_node *node = config->handler_context.node;