input_id: fix detection of devices with mouse buttons
authorMichal Suchanek <msuchanek@suse.de>
Mon, 12 Jun 2017 12:09:55 +0000 (14:09 +0200)
committerMichal Suchanek <msuchanek@suse.de>
Tue, 27 Jun 2017 11:28:11 +0000 (13:28 +0200)
commit0c21944e246ea598d0368547a172101d22a3d69d
tree05e752a301326058d8072f28c15f0e89cf6aabb7
parent38887d1bd5eb037a532279b2b75d6a87ce381419
input_id: fix detection of devices with mouse buttons

Assign ID_INPUT_MOUSE property to devices with mouse buttons and no axis.

Libinput tries to use libwacom on devices with tablet-pad capability
which are detected by ID_INPUT_TABLET_PAD=1 property so assign pointer
class by setting ID_INPUT_MOUSE=1 to devices with mouse buttons and let
libwacom override the class for Wacom pads.
src/udev/udev-builtin-input_id.c