libinput/src
Peter Hutterer 68eef4e154 tablet: if a serial comes in late, discard it
If a tool starts reporting with serial 0 and later updates to a real serial,
discard that serial and keep reporting as serial 0. We cannot really change
the tool after proximity in as we don't know when callers query for the serial
(well, we could know but any well-written caller will ask for the serial on
the proximity in event, so what's the point).

Thus if we do get a serial in and the matching tool, check if we have a tool
with the serial 0 already. If so, re-use that. This means we lose correct tool
tracking on such tablets but so far these seem to only be on devices where the
use of multiple tools is unlikely.

https://bugs.freedesktop.org/show_bug.cgi?id=97526

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jason Gerecke <jason.gerecke@wacom.com>
(cherry picked from commit d686e13338)
2016-09-06 15:42:15 +10:00
..
evdev-middle-button.c touchpad: remove software middle button when emulation is enabled 2016-07-04 09:41:33 +10:00
evdev-mt-touchpad-buttons.c touchpad: change offset ints to device_coords 2016-07-18 08:53:55 +10:00
evdev-mt-touchpad-edge-scroll.c touchpad: reset the edge scroll state on touch up if edge scroll is disabled 2016-08-30 15:58:54 +10:00
evdev-mt-touchpad-gestures.c gestures: make the gesture movement threshold depending on finger count 2016-07-04 07:42:54 +10:00
evdev-mt-touchpad-tap.c touchpad: add a config option to disable tap-and-drag 2016-01-27 10:03:28 +10:00
evdev-mt-touchpad.c touchpad: always reset the motion history on finger changes 2016-08-30 15:59:10 +10:00
evdev-mt-touchpad.h touchpad: remove software middle button when emulation is enabled 2016-07-04 09:41:33 +10:00
evdev-tablet-pad-leds.c pad: implement basic mode group support (1 group with 1 mode) 2016-06-24 13:29:17 +10:00
evdev-tablet-pad.c pad: implement basic mode group support (1 group with 1 mode) 2016-06-24 13:29:17 +10:00
evdev-tablet-pad.h pad: implement basic mode group support (1 group with 1 mode) 2016-06-24 13:29:17 +10:00
evdev-tablet.c tablet: if a serial comes in late, discard it 2016-09-06 15:42:15 +10:00
evdev-tablet.h tablet: add helper function to access the libinput context 2016-06-10 06:57:41 +10:00
evdev.c evdev: add quirk for the HP85810 touchpad 2016-09-06 15:40:32 +10:00
evdev.h evdev: add quirk for the HP85810 touchpad 2016-09-06 15:40:32 +10:00
filter-private.h Add an API to change pointer acceleration profiles 2015-09-11 00:54:01 +10:00
filter.c tablet: make the cursor/lens tool behave like a 1000dpi mouse 2016-06-28 11:28:49 +10:00
filter.h tablet: hook up relative motion events 2016-01-22 16:16:55 +10:00
libinput-private.h pad: implement basic mode group support (1 group with 1 mode) 2016-06-24 13:29:17 +10:00
libinput-util.c Change to micro seconds for measuring time internally 2015-07-28 17:42:32 +08:00
libinput-util.h Fix some indentation issues 2016-07-13 08:33:30 +10:00
libinput-version.h.in COPYING: Update boilerplate from MIT X11 to MIT Expat license 2015-06-16 14:36:04 +10:00
libinput.c Remove LIBINPUT_EVENT_TABLET_PAD_MODE event 2016-07-11 11:00:51 +10:00
libinput.h Remove LIBINPUT_EVENT_TABLET_PAD_MODE event 2016-07-11 11:00:51 +10:00
libinput.pc.in Add -lrt to the libs 2014-07-03 09:59:43 +10:00
libinput.sym pad: Add a new API for modes and mode groups 2016-06-22 11:57:07 +10:00
Makefile.am pad: implement basic mode group support (1 group with 1 mode) 2016-06-24 13:29:17 +10:00
path.c Ignore test devices for libinput contexts not run from the test suite 2015-07-28 17:42:32 +08:00
path.h COPYING: Update boilerplate from MIT X11 to MIT Expat license 2015-06-16 14:36:04 +10:00
timer.c timer: print the wrong offset when we have a negative timer offset bug 2016-04-11 13:02:19 +10:00
timer.h Change to micro seconds for measuring time internally 2015-07-28 17:42:32 +08:00
udev-seat.c Ignore test devices for libinput contexts not run from the test suite 2015-07-28 17:42:32 +08:00
udev-seat.h COPYING: Update boilerplate from MIT X11 to MIT Expat license 2015-06-16 14:36:04 +10:00