src/seat.c: Allow pointer speed of -1

This commit is contained in:
Simon Long 2024-11-08 20:38:56 +00:00 committed by GitHub
parent 869c654fc1
commit 01f6c5d073
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);
}