libinput/src
Hans de Goede 7dc2ea22ed touchpad: Rewrite / fix tp_release_all_taps
Before this commit tp_release_all_taps would call tp_tap_handle_timeout, which
is a nop when in state DRAGGING. tp_clear_state then releases all touches and
calls touchpad_handle_state which moves the state to DRAGGING_WAIT, and the
button 1 release will only be done after the tap-timeout, rather then directly
as it should on tp_clear_state.

This commit fixes this by instead of calling tp_tap_handle_timeout, directly
releasing pressed buttons and switching to state DEAD or IDLE depending on
fingers_down.

Besides fixing this issue, this rewrite also makes it possible to use
tp_release_all_taps outside of tp_clear_state, which will be used to add
tap suspend / resume functionality in a follow up commit.

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>
2014-11-06 15:31:56 +10:00
..
evdev-mt-touchpad-buttons.c touchpad: hook up left-handed configuration 2014-09-26 10:17:41 +10:00
evdev-mt-touchpad-tap.c touchpad: Rewrite / fix tp_release_all_taps 2014-11-06 15:31:56 +10:00
evdev-mt-touchpad.c touchpad: hook up left-handed configuration 2014-09-26 10:17:41 +10:00
evdev-mt-touchpad.h touchpad: Rewrite / fix tp_release_all_taps 2014-11-06 15:31:56 +10:00
evdev.c evdev: add DPI to evdev calculations 2014-10-31 14:31:51 +10:00
evdev.h evdev: add DPI to evdev calculations 2014-10-31 14:31:51 +10:00
filter-private.h filter: add a configurable speed interface 2014-09-23 10:46:22 +10:00
filter.c filter: perform speed computations with doubles 2014-10-31 14:12:19 +10:00
filter.h filter: Fix typo 2014-10-31 14:11:28 +10:00
libinput-private.h core: Move libinput_event definition to libinput-private.h 2014-11-06 15:08:28 +10:00
libinput-util.c Add a customizable log handler 2014-02-19 08:35:25 +10:00
libinput-util.h Add a helper function for clock_gettime 2014-09-18 11:30:15 +10:00
libinput-version.h.in Port evdev code to be used as a shared library 2013-11-12 22:37:20 +01:00
libinput.c core: Move libinput_event definition to libinput-private.h 2014-11-06 15:08:28 +10:00
libinput.h Fix documentation for libinput_log_set_handler 2014-11-04 10:32:26 +10:00
libinput.pc.in Add -lrt to the libs 2014-07-03 09:59:43 +10:00
Makefile.am filter: add a filter-private.h header file 2014-09-23 10:46:22 +10:00
path.c evdev: don't resume a removed device 2014-09-18 11:31:23 +10:00
path.h path: modify backend to allow for more than one device 2014-02-10 11:23:35 +10:00
timer.c Add a helper function for clock_gettime 2014-09-18 11:30:15 +10:00
timer.h timer.h: Add #include libinput-util.h 2014-06-11 10:30:12 +10:00
udev-seat.c evdev: don't resume a removed device 2014-09-18 11:31:23 +10:00
udev-seat.h udev: Drop unused seat_name in struct udev_seat 2014-01-16 20:42:30 +01:00