Do not use the removed primary flag for touch points.
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Fri, 13 Jan 2012 12:13:50 +0000 (14:13 +0200)
committerSamuel Rødal <samuel.rodal@nokia.com>
Fri, 13 Jan 2012 12:15:54 +0000 (13:15 +0100)
Change-Id: I5ac4bf15b89a7d352c9971e6ce4882d49e686838
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/plugins/platforms/wayland/qwaylandinputdevice.cpp

index adb6482..48aa291 100644 (file)
@@ -450,8 +450,6 @@ void QWaylandInputDevice::handleTouchPoint(int id, int x, int y, Qt::TouchPointS
 
     tp.state = state;
     tp.id = id;
-    if (mTouchPoints.isEmpty())
-        tp.flags |= QTouchEvent::TouchPoint::Primary;
     tp.pressure = tp.state == Qt::TouchPointReleased ? 0 : 1;
     mTouchPoints.append(tp);
 }