aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/input
diff options
context:
space:
mode:
authorLibravatar Robert Kubosz <kubosz.robert@gmail.com>2018-07-12 15:50:42 +0200
committerLibravatar Robert Kubosz <kubosz.robert@gmail.com>2018-07-12 15:50:42 +0200
commit094edcbea2f587942afdb539efb5a9e46b53113a (patch)
treee2c7753ef39b47b76160d38345c39fcd4186bf5e /sway/commands/input
parentadd paragraph to sway-input man page (diff)
downloadsway-094edcbea2f587942afdb539efb5a9e46b53113a.tar.gz
sway-094edcbea2f587942afdb539efb5a9e46b53113a.tar.zst
sway-094edcbea2f587942afdb539efb5a9e46b53113a.zip
rm constraint for max value of button identifier
updated error message to be more adequate for current contraint
Diffstat (limited to 'sway/commands/input')
-rw-r--r--sway/commands/input/scroll_button.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/input/scroll_button.c b/sway/commands/input/scroll_button.c
index 7a0fd2e4..d19f3516 100644
--- a/sway/commands/input/scroll_button.c
+++ b/sway/commands/input/scroll_button.c
@@ -19,10 +19,10 @@ 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 < 0 || scroll_button > 1000) { 22 if (scroll_button < 0) {
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 "Scroll button identifier cannot be negative");
26 } 26 }
27 new_config->scroll_button = scroll_button; 27 new_config->scroll_button = scroll_button;
28 28