aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/input
diff options
context:
space:
mode:
authorLibravatar Robert Kubosz <kubosz.robert@gmail.com>2018-07-12 12:08:53 +0200
committerLibravatar Robert Kubosz <kubosz.robert@gmail.com>2018-07-12 12:08:53 +0200
commit08edaf4e76124a676e9457015e4451b05c355520 (patch)
treeac5fe767723853718154c0579aed6cca0a311c78 /sway/commands/input
parentadd scroll button option (diff)
downloadsway-08edaf4e76124a676e9457015e4451b05c355520.tar.gz
sway-08edaf4e76124a676e9457015e4451b05c355520.tar.zst
sway-08edaf4e76124a676e9457015e4451b05c355520.zip
increase maximum value of button identifier
and also cleanup spaces
Diffstat (limited to 'sway/commands/input')
-rw-r--r--sway/commands/input/scroll_button.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/input/scroll_button.c b/sway/commands/input/scroll_button.c
index a9d697cf..7a0fd2e4 100644
--- a/sway/commands/input/scroll_button.c
+++ b/sway/commands/input/scroll_button.c
@@ -19,7 +19,7 @@ struct cmd_results *input_cmd_scroll_button(int argc, char **argv) {
19 new_input_config(current_input_config->identifier); 19 new_input_config(current_input_config->identifier);
20 20
21 int scroll_button = atoi(argv[0]); 21 int scroll_button = atoi(argv[0]);
22 if (scroll_button < 1 || scroll_button > 10) { 22 if (scroll_button < 0 || scroll_button > 1000) {
23 free_input_config(new_config); 23 free_input_config(new_config);
24 return cmd_results_new(CMD_INVALID, "scroll_button", 24 return cmd_results_new(CMD_INVALID, "scroll_button",
25 "Input out of range [1, 10]"); 25 "Input out of range [1, 10]");