summaryrefslogtreecommitdiff
path: root/src/filter-touchpad-x230.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-05-21 14:28:53 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-06-08 14:33:35 +1000
commit5792af9a5f4ae0bc11cd6d070ed643896c157f19 (patch)
treefe5d2141e893bc8c274bac0d215faacaaa9780a7 /src/filter-touchpad-x230.c
parentbe647fbb0d32184636bd4bdd41e899b53ef59509 (diff)
Implement a quirks system to replace the udev property parsing
Previously, we had all extra device information ("This is an Apple Touchpad", "This touchpad causes pointer jumps", etc.) in the udev hwdb. The problem with the hwdb is that updating it is nontrivial for the average user and debugging when things go wrong is even harder. Plus, the hwdb has a matching scheme that is unpredictable unless one is familiar with the implementation. This patch set moves the hwdb entries into .ini style text files, with a simple line-based parser. A new libinput list-quirks tool can list the quirks applied to any given device, in --verbose mode it prints all matches as they apply or not apply. The data files are currently unused by libinput, that comes in a later patch. They're installed though, the defaults point to the /usr/share/libinput directory and for *temporary* local overrides the single file /etc/libinput/local-overrides.quirks. Failure to parse any file is a hard failure for the quirks system, but if the local override file doesn't exist that's fine. THIS IS NOT A CONFIGURATION INTERFACE! None of these settings are exposed via the libinput_device_config_* calls. There is no API guarantee for these files, think of them as source code. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/filter-touchpad-x230.c')
0 files changed, 0 insertions, 0 deletions