From 06ecd74db138bcdf6f87df5917f6d5035da41823 Mon Sep 17 00:00:00 2001 From: Mikko Harju Date: Fri, 13 Feb 2015 13:45:25 +0200 Subject: [PATCH] Do not mark non-existent touch points as stationary Make sure touches that were already released on an earlier SYN_REPORT are not re-marked as TouchPointStationary. This change has no effect on type A event processing since there the contact state is never zeroed. Change-Id: I2d4d705d2b3fae424b6245a75d4015dc2d86ad35 Reviewed-by: Laszlo Agocs Reviewed-by: Robin Burchell --- src/platformsupport/input/evdevtouch/qevdevtouch.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platformsupport/input/evdevtouch/qevdevtouch.cpp b/src/platformsupport/input/evdevtouch/qevdevtouch.cpp index b1b0f37e97..5215f7da0a 100644 --- a/src/platformsupport/input/evdevtouch/qevdevtouch.cpp +++ b/src/platformsupport/input/evdevtouch/qevdevtouch.cpp @@ -554,6 +554,10 @@ void QEvdevTouchScreenData::processInputEvent(input_event *data) while (it.hasNext()) { it.next(); Contact &contact(it.value()); + + if (!contact.state) + continue; + if (contact.state == Qt::TouchPointReleased) { if (m_typeB) contact.state = static_cast(0);