aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/input/scroll_button.c
diff options
context:
space:
mode:
authorRobert Kubosz <kubosz.robert@gmail.com>2018-07-12 12:08:53 +0200
committerRobert Kubosz <kubosz.robert@gmail.com>2018-07-12 12:08:53 +0200
commit08edaf4e76124a676e9457015e4451b05c355520 (patch)
treeac5fe767723853718154c0579aed6cca0a311c78 /sway/commands/input/scroll_button.c
parent41b80c28dfafb9bc13b68e4d5d2811d311b59863 (diff)
increase maximum value of button identifier
and also cleanup spaces
Diffstat (limited to 'sway/commands/input/scroll_button.c')
-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) {
new_input_config(current_input_config->identifier);
int scroll_button = atoi(argv[0]);
- if (scroll_button < 1 || scroll_button > 10) {
+ if (scroll_button < 0 || scroll_button > 1000) {
free_input_config(new_config);
return cmd_results_new(CMD_INVALID, "scroll_button",
"Input out of range [1, 10]");