Hi,

On 30-10-15 02:19, Peter Hutterer wrote:
And use the unaccelerated motion events. Better than crashing, and better than
a non-moving mouse.

Signed-off-by: Peter Hutterer <[email protected]>

The entire set looks good to me and is:

Reviewed-by: Hans de Goede <[email protected]>

Regards,

Hans


---
  src/evdev.c | 17 ++++++++++++-----
  1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/src/evdev.c b/src/evdev.c
index 45c1b1b..4c947d6 100644
--- a/src/evdev.c
+++ b/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;

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to