tablet: centralize the libwacom handling
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 28 Oct 2024 23:46:05 +0000 (09:46 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 31 Oct 2024 03:38:28 +0000 (13:38 +1000)
commit2b2959fc8b2172c692e7f182c3cf7e90a6320e1a
tree1ecfb113ec5dfc209f26a48de6f09a6b9f31ea7a
parentd3bc0c79ff14e303d777baab7eedea76ad3f515d
tablet: centralize the libwacom handling

Instead of re-creating the the libwacom device from the database every
time we need it let's create it once during tablet|pad_init and pass it
down to the functions.

This allows us to have one point per tablet/pad where we can log an
error if the device is not supported by libwacom - previously this was
printed during the left-handed setup.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1073>
src/evdev-tablet-pad-leds.c
src/evdev-tablet-pad.c
src/evdev-tablet-pad.h
src/evdev-tablet.c
src/evdev-tablet.h
src/evdev.c
src/evdev.h