mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-06 11:50:12 +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>
This commit is contained in:
parent
56721a3ef4
commit
2ca8d6cb08
1 changed files with 1 additions and 2 deletions
|
|
@ -1203,8 +1203,7 @@ evdev_get_trackpoint_range(struct evdev_device *device)
|
|||
prop = udev_device_get_property_value(device->udev_device,
|
||||
"LIBINPUT_ATTR_TRACKPOINT_RANGE");
|
||||
if (prop) {
|
||||
if (!safe_atoi(prop, &range) ||
|
||||
(range < 0.0 || range > 100)) {
|
||||
if (!safe_atoi(prop, &range) || range < 0.0) {
|
||||
evdev_log_error(device,
|
||||
"trackpoint range property is present but invalid, "
|
||||
"using %d instead\n",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue