udev-builtin-input_id: don't label absolute mice as pointing sticks
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 22 Feb 2022 23:12:43 +0000 (09:12 +1000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 10 Mar 2022 12:54:30 +0000 (12:54 +0000)
commitc6cdd3489f2abfd0a868ad5d8d42b166d7eec33f
tree0b75c1491cd84ad4797b8f4981bc4a8feb370224
parent3c2d21b596761670e80aef700e25c37c5f24bbe1
udev-builtin-input_id: don't label absolute mice as pointing sticks

The Getac UX10 tablet exposes a "CUST0000:00 0EEF:C002 Mouse" device
with BTN_LEFT/RIGHT and ABS_X/Y on the i2c bus. This causes the builtin
to incorrectly label it as pointing stick (all i2c mice are
tagged as ID_INPUT_POINTING_STICK, see 3d7ac1c655ec4).

Fix this by adding a separate variable for absolute pointing
devices like the VMmouse USB mouse or this Getac tablet - this way we
skip the pointing stick check.

See https://gitlab.freedesktop.org/libinput/libinput/-/issues/743
for recordings.

(cherry picked from commit 8ac9ec4d5c210825759d515422d3e66c20615fc1)
(cherry picked from commit ea5701eb64ff40f915567ae4088ffb7efc0f4155)
src/udev/udev-builtin-input_id.c