mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-05 00:38:01 +02:00
evdev: don't allow a trackpoint range of 0
https://bugzilla.redhat.com/show_bug.cgi?id=1583324 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
54403466c8
commit
d62118ac56
1 changed files with 5 additions and 0 deletions
|
|
@ -1215,6 +1215,11 @@ evdev_get_trackpoint_range(struct evdev_device *device)
|
|||
}
|
||||
|
||||
out:
|
||||
if (range == 0) {
|
||||
evdev_log_bug_libinput(device, "trackpoint range is zero\n");
|
||||
range = DEFAULT_TRACKPOINT_RANGE;
|
||||
}
|
||||
|
||||
evdev_log_info(device, "trackpoint device set to range %d\n", range);
|
||||
return range;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue