libinput/test
Peter Hutterer 5552a6f145 touchpad: sync BTN_TOOL_FINGER state on init
The Elantech touchpad on my Asus Vivobook doesn't release BTN_TOOL_FINGER on
up. If the touchpad was used before libinput initializes, the kernel filters
the event because its state is already set. We never receive it and keep
ignoring all events until the first switch to BTN_TOOL_DOUBLETAP and back.

On touchpad init sync the BTN_TOOL_FINGER state and set it accordingly. This
is the only event that can be legitimately down on init. We don't care about
BTN_TOUCH because ignoring an ongoing touch on init is generally a good idea
and we can ignore any multifinger gesture as well.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2016-12-06 07:28:15 +10:00
..
50-litest.conf test: Prefix litest created device names with litest 2014-06-25 11:11:45 +10:00
build-cxx.cc test: Add include from C++ build test 2014-03-29 00:51:44 +01:00
build-pedantic.c Fix a couple of coding style issues 2015-05-01 12:09:57 +10:00
device.c evdev: actually ignore joysticks 2016-11-02 21:04:03 +10:00
gestures.c test: merge all tests into a single binary 2016-08-02 10:19:38 +10:00
keyboard.c test: merge all tests into a single binary 2016-08-02 10:19:38 +10:00
litest-device-alps-dualpoint.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-alps-semi-mt.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-anker-mouse-kbd.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-apple-internal-keyboard.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-apple-magicmouse.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-asus-rog-gladius.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-atmel-hover.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-bcm5974.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-calibrated-touchscreen.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-cyborg-rat-5.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-elantech-touchpad.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-generic-singletouch.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-huion-pentablet.c Fix the license for a bunch of tablet test devices 2016-12-01 11:12:09 +10:00
litest-device-keyboard-all-codes.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-keyboard-razer-blackwidow.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-keyboard.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-logitech-trackball.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-magic-trackpad.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-mouse-low-dpi.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-mouse-roccat.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-mouse-wheel-click-angle.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-mouse-wheel-click-count.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-mouse.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-ms-surface-cover.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-nexus4-touch-screen.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-protocol-a-touch-screen.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-qemu-usb-tablet.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-synaptics-hover.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-synaptics-i2c.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-synaptics-st.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-synaptics-t440.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-synaptics-x1-carbon-3rd.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-synaptics.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-touch-screen.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-touchscreen-fuzz.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-trackpoint.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-vmware-virtual-usb-mouse.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-wacom-bamboo-tablet.c Fix the license for a bunch of tablet test devices 2016-12-01 11:12:09 +10:00
litest-device-wacom-cintiq-13hdt-finger.c Fix the license for a bunch of tablet test devices 2016-12-01 11:12:09 +10:00
litest-device-wacom-cintiq-13hdt-pad.c Fix the license for a bunch of tablet test devices 2016-12-01 11:12:09 +10:00
litest-device-wacom-cintiq-13hdt-pen.c Fix the license for a bunch of tablet test devices 2016-12-01 11:12:09 +10:00
litest-device-wacom-cintiq-24hd.c Fix the license for a bunch of tablet test devices 2016-12-01 11:12:09 +10:00
litest-device-wacom-cintiq-24hdt-pad.c Fix the license for a bunch of tablet test devices 2016-12-01 11:12:09 +10:00
litest-device-wacom-cintiq-tablet.c Fix the license for a bunch of tablet test devices 2016-12-01 11:12:09 +10:00
litest-device-wacom-ekr.c Fix the license for a bunch of tablet test devices 2016-12-01 11:12:09 +10:00
litest-device-wacom-hid4800-pen.c Fix the license for a bunch of tablet test devices 2016-12-01 11:12:09 +10:00
litest-device-wacom-intuos-finger.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-wacom-intuos-tablet.c Fix the license for a bunch of tablet test devices 2016-12-01 11:12:09 +10:00
litest-device-wacom-intuos3-pad.c Fix the license for a bunch of tablet test devices 2016-12-01 11:12:09 +10:00
litest-device-wacom-intuos5-pad.c Fix the license for a bunch of tablet test devices 2016-12-01 11:12:09 +10:00
litest-device-wacom-isdv4-tablet.c Fix the license for a bunch of tablet test devices 2016-12-01 11:12:09 +10:00
litest-device-wacom-touch.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-waltop-tablet.c Fix the license for a bunch of tablet test devices 2016-12-01 11:12:09 +10:00
litest-device-wheel-only.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-xen-virtual-pointer.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-device-yubikey.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-int.h Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest-selftest.c test: fix compiler warning 2016-01-20 12:56:35 +10:00
litest.c Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
litest.h Drop HAVE_CONFIG_H ifdef 2016-12-01 11:06:54 +10:00
log.c evdev: init axis range warnings for touch devices too 2016-11-30 08:54:00 +10:00
Makefile.am test: add a device and test for udev-set calibration values 2016-11-29 11:21:38 +10:00
misc.c util: tighten requirements on the click angle/count properties 2016-11-29 11:21:39 +10:00
pad.c test: merge all tests into a single binary 2016-08-02 10:19:38 +10:00
path.c test: rename SYNAPTICS_CLICKPAD to SYNAPTICS_CLICKPAD_X220 2016-09-09 12:54:01 +10:00
pointer.c Whitespace fixes 2016-12-05 15:17:28 +10:00
symbols-leak-test.in add simple symbols leak checker 2015-02-13 10:20:44 +10:00
tablet.c tablet: add touch arbitration 2016-09-07 11:17:03 +10:00
touch.c test: add a device and test for udev-set calibration values 2016-11-29 11:21:38 +10:00
touchpad-buttons.c test: merge all tests into a single binary 2016-08-02 10:19:38 +10:00
touchpad-tap.c test: fix maybe-uninitialized compiler warnings 2016-11-22 11:23:39 +10:00
touchpad.c touchpad: sync BTN_TOOL_FINGER state on init 2016-12-06 07:28:15 +10:00
trackball.c test: merge all tests into a single binary 2016-08-02 10:19:38 +10:00
trackpoint.c touchpad: require at least 3 events before enabling trackpoint palm detection 2016-09-12 13:50:15 +10:00
udev.c test: rename SYNAPTICS_CLICKPAD to SYNAPTICS_CLICKPAD_X220 2016-09-09 12:54:01 +10:00
valgrind.suppressions Merge branch 'master' into tablet-support 2015-05-22 14:21:21 +10:00