evdev: init pointer acceleration for any device with pointer cap and rel x/y
The Asus RoG Gladius exposes two event nodes, one mouse, one keyboard. The keyboard node has REL_X/Y and REL_HWHEEL on top of the various key bits and ABS_VOLUME. The keyboard node does not have BTN_* set, udev tags this device as a keyboard only, not as a pointer but we still initialize the pointer caps for it because of the wheel. When moving this mouse, some deltas (ca "1 in every 20") are sent through the keyboard node, causing a crash because we never initialized pointer acceleration. https://bugzilla.redhat.com/show_bug.cgi?id=1275407 Signed-off-by:Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by:
Hans de Goede <hdegoede@redhat.com>
Showing
- src/evdev.c 10 additions, 5 deletionssrc/evdev.c
- test/Makefile.am 1 addition, 0 deletionstest/Makefile.am
- test/litest-device-asus-rog-gladius.c 334 additions, 0 deletionstest/litest-device-asus-rog-gladius.c
- test/litest.c 2 additions, 0 deletionstest/litest.c
- test/litest.h 1 addition, 0 deletionstest/litest.h
Loading
Please register or sign in to comment