evdev: init pointer accel filters when we have rel x/y axes
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 24 Apr 2015 04:59:18 +0000 (14:59 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 27 Apr 2015 21:45:32 +0000 (07:45 +1000)
commit5e85957ad20f0a084a538745917547aa96b20f96
tree59afa38374f103f10b750e9e6726caa3698ea2c7
parent6083fafe53267c8f0d6120360449eacf220ab078
evdev: init pointer accel filters when we have rel x/y axes

Some devices provide abs x/y and rel x/y. We can't know which event the device
will send. The Microsoft Surface Type Cover sends relative events, which
then crashes libinput when we don't have an accel filter set up.

So instead of checking that the device doesn't have ABS_X/Y, check for the
device to have REL_X/Y instead.

https://bugzilla.redhat.com/show_bug.cgi?id=1206869

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-By: Derek Foreman <derekf@osg.samsung.com>
src/evdev.c
test/pointer.c