libinput/test
Hans de Goede 55d84420e2 touchpad: Rework is_pointer handling
We don't want touches in the button area to cause the pointer to move. So
instead of making a touch the pointer when it moves to TOUCH_BEGIN, wait
with making it the pointer until its buttons state moves to BUTTON_STATE_AREA.

Note that a touch in the main area of the touchpad will move to
BUTTON_STATE_AREA immediately. If software-buttons are not enabled, any finger
is in the BUTTON_STATE_AREA.

While at it also refactor the is_pointer setting in general, removing
code duplicition wrt checking that another touch is not already
the pointer on unpinning a finger, and add safeguards that unpinning
does not make a finger which is not in button state BUTTON_STATE_AREA the
pointer, nor that the button code makes a pinned finger the pointer.

All these sanity checks are combined into a new tp_button_active function,
since they should be taken into account for 2 finger scrolling, etc. too.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-05-22 14:45:01 +02:00
..
build-cxx.cc test: Add include from C++ build test 2014-03-29 00:51:44 +01:00
build-pedantic.c test: add a build-test for -pedantic 2014-01-15 11:26:08 +10:00
keyboard.c test: fix a couple of memleaks in the tests 2014-04-23 12:43:23 +10:00
litest-bcm5974.c test: switch the remaining devices to a description-based device 2014-04-08 15:07:02 +10:00
litest-int.h test: allow for description-based test devices 2014-04-08 15:07:02 +10:00
litest-keyboard.c test: switch the remaining devices to a description-based device 2014-04-08 15:07:02 +10:00
litest-mouse.c test: switch the remaining devices to a description-based device 2014-04-08 15:07:02 +10:00
litest-synaptics-st.c test: switch the remaining devices to a description-based device 2014-04-08 15:07:02 +10:00
litest-synaptics.c test: mark the synaptics clickpad as buttonpad 2014-04-10 11:11:56 +10:00
litest-trackpoint.c test: switch the remaining devices to a description-based device 2014-04-08 15:07:02 +10:00
litest-wacom-touch.c test: switch the remaining devices to a description-based device 2014-04-08 15:07:02 +10:00
litest.c test: Test seat wide button and key count helpers 2014-04-23 00:07:40 +02:00
litest.h test: Test seat wide button and key count helpers 2014-04-23 00:07:40 +02:00
log.c test: plug a couple of memory leaks 2014-03-27 08:46:47 +10:00
Makefile.am test: disable parallel build in test directory 2014-04-24 08:22:54 +10:00
misc.c test: add tests for event conversion and back 2014-04-10 11:11:56 +10:00
path.c test: add litest helper functions for creating uinput devices 2014-04-08 15:07:02 +10:00
pointer.c test: fix a couple of memleaks in the tests 2014-04-23 12:43:23 +10:00
touch.c test: fix a couple of memleaks in the tests 2014-04-23 12:43:23 +10:00
touchpad.c touchpad: Rework is_pointer handling 2014-05-22 14:45:01 +02:00
udev.c Make it possible to have persistent libinput_seat instances 2014-02-10 22:28:46 +01:00
valgrind.suppressions test: automatically run the tests against valgrind for leaks 2014-04-10 11:11:56 +10:00