From 893eb97b2ad29c846026cbeb1da86edbb0be9cb5 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Wed, 11 Jan 2012 20:02:25 +0200 Subject: Do not mark any touch points as primary when no mouse event is sent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The touchscreen plug-in generates touch events only and therefore no touch point must be marked as primary because that would mean there is also a mouse event created from that point which is not the case. Change-Id: I80c5fdbc52b048cd74c834900b6c8100963210e6 Reviewed-by: Samuel Rødal --- src/plugins/generic/touchscreen/qtouchscreen.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/plugins/generic/touchscreen/qtouchscreen.cpp b/src/plugins/generic/touchscreen/qtouchscreen.cpp index d9b835b187..8f37bab0c4 100644 --- a/src/plugins/generic/touchscreen/qtouchscreen.cpp +++ b/src/plugins/generic/touchscreen/qtouchscreen.cpp @@ -247,10 +247,6 @@ void QTouchScreenData::processInputEvent(input_event *data) if (key == -1) key = m_contacts.count(); - // Mark the first point as primary. - if (m_contacts.isEmpty()) - m_currentData.flags |= QTouchEvent::TouchPoint::Primary; - m_contacts.insert(key, m_currentData); m_currentData = Contact(); -- cgit v1.2.3