1
1
mirror of https://github.com/swaywm/sway synced 2024-11-18 00:24:17 +01:00

rm constraint for max value of button identifier

updated error message to be more adequate for current contraint
This commit is contained in:
Robert Kubosz 2018-07-12 15:50:42 +02:00
parent 20d6c7c2e4
commit 094edcbea2
No known key found for this signature in database
GPG Key ID: 781954F8F9DF3043

@ -19,10 +19,10 @@ 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 < 0 || scroll_button > 1000) {
if (scroll_button < 0) {
free_input_config(new_config);
return cmd_results_new(CMD_INVALID, "scroll_button",
"Input out of range [1, 10]");
"Scroll button identifier cannot be negative");
}
new_config->scroll_button = scroll_button;