mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-07 19:20:15 +01:00
evdev: log a bug for missing pointer accel on relative events
And use the unaccelerated motion events. Better than crashing, and better than a non-moving mouse. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
f012d78de4
commit
8b6cc1cc95
1 changed files with 12 additions and 5 deletions
17
src/evdev.c
17
src/evdev.c
|
|
@ -299,11 +299,18 @@ evdev_flush_pending_event(struct evdev_device *device, uint64_t time)
|
|||
if (evdev_post_trackpoint_scroll(device, unaccel, time))
|
||||
break;
|
||||
|
||||
/* Apply pointer acceleration. */
|
||||
accel = filter_dispatch(device->pointer.filter,
|
||||
&unaccel,
|
||||
device,
|
||||
time);
|
||||
if (device->pointer.filter) {
|
||||
/* Apply pointer acceleration. */
|
||||
accel = filter_dispatch(device->pointer.filter,
|
||||
&unaccel,
|
||||
device,
|
||||
time);
|
||||
} else {
|
||||
log_bug_libinput(libinput,
|
||||
"%s: accel filter missing\n",
|
||||
udev_device_get_devnode(device->udev_device));
|
||||
accel = unaccel;
|
||||
}
|
||||
|
||||
if (normalized_is_zero(accel) && normalized_is_zero(unaccel))
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue