mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 16:10:06 +01:00
evdev: drop the arbitrary trackpoint range maximum
ALPS SS5 devices have a range above 100.
https://bugs.freedesktop.org/show_bug.cgi?id=106323
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 2ca8d6cb08)
This commit is contained in:
parent
a915311180
commit
a3b3e85c0e
1 changed files with 1 additions and 2 deletions
|
|
@ -1169,8 +1169,7 @@ evdev_get_trackpoint_range(struct evdev_device *device)
|
||||||
prop = udev_device_get_property_value(device->udev_device,
|
prop = udev_device_get_property_value(device->udev_device,
|
||||||
"LIBINPUT_ATTR_TRACKPOINT_RANGE");
|
"LIBINPUT_ATTR_TRACKPOINT_RANGE");
|
||||||
if (prop) {
|
if (prop) {
|
||||||
if (!safe_atoi(prop, &range) ||
|
if (!safe_atoi(prop, &range) || range < 0.0) {
|
||||||
(range < 0.0 || range > 100)) {
|
|
||||||
evdev_log_error(device,
|
evdev_log_error(device,
|
||||||
"trackpoint range property is present but invalid, "
|
"trackpoint range property is present but invalid, "
|
||||||
"using %d instead\n",
|
"using %d instead\n",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue