mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 09:20:07 +01:00
read-only mirror of https://gitlab.freedesktop.org/libinput/libinput
While e.g. disabling the touchpad while the trackpoint is used, we want to stop sending tap (or scroll or motion) events. We cannot use tp_clear_state at this time as that will also release any touchpad buttons pressed, breaking dragging with the trackpoint using the touchpad or clickpad buttons. Calling tp_release_all_taps() and then ensuring that we do not call tp_tap_handle_state as long as the trackpoint is in use, is enough to disable taps when the trackpoint is in use. However when the trackpoint stops being used, we cannot simply start calling tp_tap_handle_state() again, we first need to sync the tap.state to the current reality, specifically if fingers are down it must be TAP_STATE_DEAD, so that their releases do not trigger the log_bug_libinput on a release in tp_tap_idle_handle_event. Directly messing with tap.state from outside evdev-mt-touchpad-tap.c is not good, so add tp_tap_suspend and tp_tap_resume functions for this. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> |
||
|---|---|---|
| doc | ||
| include/linux | ||
| m4 | ||
| src | ||
| test | ||
| tools | ||
| .gitignore | ||
| autogen.sh | ||
| configure.ac | ||
| COPYING | ||
| Makefile.am | ||
| README | ||
libinput libinput is a library that handles input devices for display servers and other applications that need to directly deal with input devices. It provides device detection, device handling, input device event processing and abstraction so minimize the amount of custom input code the user of libinput need to provide the common set of functionality that users expect. Input event processing includes scaling touch coordinates, generating pointer events from touchpads, pointer acceleration, etc. libinput originates from weston, the Wayland reference compositor. The source code of libinput can be found at: http://cgit.freedesktop.org/wayland/libinput For more information, visit: http://www.freedesktop.org/wiki/Software/libinput/