Fix bug whereby pointer speed of -1 is not valid

This commit is contained in:
Simon Long 2024-11-08 18:23:03 +00:00
parent 7e50c60b00
commit dc5a952813

View file

@ -186,7 +186,7 @@ configure_libinput(struct wlr_input_device *wlr_input_device)
wlr_log(WLR_INFO, "pointer acceleration unavailable");
} else {
wlr_log(WLR_INFO, "pointer acceleration configured");
if (dc->pointer_speed > -1) {
if (dc->pointer_speed >= -1) {
libinput_device_config_accel_set_speed(libinput_dev,
dc->pointer_speed);
}