Abstract libwacom database initialization into a single place
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 27 May 2019 08:21:09 +0000 (18:21 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 28 May 2019 00:32:08 +0000 (10:32 +1000)
commitee1bc318d5825459b16fddeaf540fb6dc88cae17
tree96d7b28280d4d97a4538826980a1a6bd8cd5763a
parent9b414faea2d8df2e2d14c2e576f7197ce310914a
Abstract libwacom database initialization into a single place

No real changes for the non-tablet code, but for tablets we now keep the
libwacom datbase around. The primary motivating factor here is response time
during tests - initializing the database under valgrind took longer than the
proximity timeouts and caused random test case failures when a proximity out
was triggered before we even got to process the first event.

This is unfortunately a burden on the runtime now since we keep libwacom
around whenever a tablet is connected. Not much of an impact though, I
suspect, chances are you're running a web browser and everything pales against
that anyway.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
meson.build
src/evdev-mt-touchpad.c
src/evdev-tablet-pad-leds.c
src/evdev-tablet-pad.c
src/evdev-tablet.c
src/evdev.c
src/libinput-private.h
src/libinput.c