libinput/test
Peter Hutterer 411f95b17f tablet: sync tools already in proximity at startup
If a tool is in proximity when we init, send a proximity event immediately.

This is only partially reliable due to the current kernel behavior:
* if the tool comes into proximity when there is no evdev client, the device
  won't send any events and must be lifted out-of-proximity first. Patch is in
  the works, see https://patchwork.kernel.org/patch/5924611/
* before 3.19, if the tool was in proximity (with an evdev client attached),
  but goes out of proximity and back in with no client connected, we get an
  immediate proximity out event from the kernel once we connect to the device
  and no further events after that.
  See kernel commit b905811a49bcd6e6726ce5bbb591f57aaddfd3be

Otherwise, things work as expected. The above should be fixed in the kernel
anyway.

Note that this changes the order of events during a udev seat init, before we
had all DEVICE_ADDED events in a row, now the proximity event may be
interspersed.

Reported-by: Jason Gerecke <killertofu@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
2015-03-05 11:23:38 +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 build-pedantic: use main(void) 2015-01-12 07:54:12 +10:00
device.c Merge branch 'master' into tablet-support 2015-02-20 10:16:21 +10:00
keyboard.c test: fix Coverity complaints 2015-02-20 10:03:09 +10:00
litest-alps-semi-mt.c test: move semi-mt special tracking into the shared litest.c 2015-01-16 07:42:50 +10:00
litest-bcm5974.c test: auto-update for BTN_TOOL_* when using litest_touch_ functions 2014-07-23 15:08:15 +10:00
litest-generic-singletouch.c test: add a generic single-touch device 2014-08-26 13:49:16 +10:00
litest-int.h Merge branch 'master' into tablet-support 2015-02-10 15:23:38 +10:00
litest-keyboard.c style fix: Remove duplicate empty lines 2014-07-22 09:00:45 +10:00
litest-mouse.c test: drop empty test device interfaces 2015-01-06 09:53:25 +10:00
litest-ms-surface-cover.c test: rename LITEST_POINTER to LITEST_RELATIVE 2014-11-11 09:55:42 +10:00
litest-protocol-a-touch-screen.c test: add protocol A touch screen tests 2015-03-02 12:45:47 +10:00
litest-qemu-usb-tablet.c test: add QEMU tablet as test device 2014-11-11 09:55:42 +10:00
litest-synaptics-hover.c test: add a semi-mt + hover synaptics touchpad 2015-01-16 07:42:50 +10:00
litest-synaptics-st.c test: auto-update for BTN_TOOL_* when using litest_touch_ functions 2014-07-23 15:08:15 +10:00
litest-synaptics-t440.c test: auto-update for BTN_TOOL_* when using litest_touch_ functions 2014-07-23 15:08:15 +10:00
litest-synaptics-x1-carbon-3rd.c test: add per-device udev rule support 2015-02-03 10:34:26 +10:00
litest-synaptics.c test: auto-update for BTN_TOOL_* when using litest_touch_ functions 2014-07-23 15:08:15 +10:00
litest-trackpoint.c test: drop empty test device interfaces 2015-01-06 09:53:25 +10:00
litest-vmware-virtual-usb-mouse.c test: add VMWare Virtual USB Mouse device 2014-11-11 09:55:42 +10:00
litest-wacom-bamboo-tablet.c test: Add Wacom Bamboo 16FG 4x5 Pen device definition 2014-06-17 17:17:14 -04:00
litest-wacom-cintiq-tablet.c test: Add tests for serial numbers on tools 2014-06-19 15:52:30 +10:00
litest-wacom-intuos-tablet.c test: add REL_WHEEL to intuos tablet 2015-03-03 10:32:49 +10:00
litest-wacom-isdv4-tablet.c test: Add Wacom ISDv4 E6 Pen device definition 2014-06-17 17:17:14 -04:00
litest-wacom-touch.c test: drop unused includes for libinput-util.h 2014-06-11 09:43:52 +10:00
litest-xen-virtual-pointer.c test: add Xen Virtual Pointer device 2014-11-11 09:55:42 +10:00
litest.c Merge branch 'master' into tablet-support 2015-03-02 13:57:17 +10:00
litest.h Merge branch 'master' into tablet-support 2015-03-02 13:57:17 +10:00
log.c path: store the udev device instead of just the devnode 2014-11-25 16:33:01 +10:00
Makefile.am Merge branch 'master' into tablet-support 2015-03-02 13:57:17 +10:00
misc.c Merge branch 'master' into tablet-support 2015-02-10 15:23:38 +10:00
path.c Add libinput_set_user_data 2014-12-23 14:49:39 +10:00
pointer.c test: add protocol A touch screen tests 2015-03-02 12:45:47 +10:00
symbols-leak-test.in add simple symbols leak checker 2015-02-13 10:20:44 +10:00
tablet.c tablet: sync tools already in proximity at startup 2015-03-05 11:23:38 +10:00
touch.c test: add protocol A touch screen tests 2015-03-02 12:45:47 +10:00
touchpad.c touchpad: Gesture support preparation 2015-02-23 10:01:02 +01:00
trackpoint.c Add pointer axis sources to the API 2014-12-24 10:47:00 +10:00
udev.c Add libinput_set_user_data 2014-12-23 14:49:39 +10:00
valgrind.suppressions Merge branch 'master' into tablet-support 2015-03-02 13:57:17 +10:00