Blame SOURCES/0016-Revert-Fix-TapHandler-so-that-it-actually-registers-.patch

72e842
From 84e0c1e0973ca7467089dc0227a2b9ac4aef52fa Mon Sep 17 00:00:00 2001
72e842
From: Albert Astals Cid <aacid@kde.org>
72e842
Date: Tue, 16 Nov 2021 22:43:37 +0100
72e842
Subject: [PATCH 16/20] Revert "Fix TapHandler so that it actually registers a
72e842
 tap"
72e842
72e842
This reverts commit 36e8ccd434f948e4f11a8f9d59139ec072e41ff5.
72e842
72e842
It's causing regresions
72e842
---
72e842
 src/quick/handlers/qquickhandlerpoint.cpp       | 4 ++--
72e842
 src/quick/handlers/qquicksinglepointhandler.cpp | 4 ++--
72e842
 2 files changed, 4 insertions(+), 4 deletions(-)
72e842
72e842
diff --git a/src/quick/handlers/qquickhandlerpoint.cpp b/src/quick/handlers/qquickhandlerpoint.cpp
72e842
index 6aef3545dd..72efdfd0f4 100644
72e842
--- a/src/quick/handlers/qquickhandlerpoint.cpp
72e842
+++ b/src/quick/handlers/qquickhandlerpoint.cpp
72e842
@@ -82,7 +82,7 @@ void QQuickHandlerPoint::localize(QQuickItem *item)
72e842
 
72e842
 void QQuickHandlerPoint::reset()
72e842
 {
72e842
-    m_id = -1;
72e842
+    m_id = 0;
72e842
     m_uniqueId = QPointingDeviceUniqueId();
72e842
     m_position = QPointF();
72e842
     m_scenePosition = QPointF();
72e842
@@ -165,7 +165,7 @@ void QQuickHandlerPoint::reset(const QVector<QQuickHandlerPoint> &points)
72e842
         pressureSum += point.pressure();
72e842
         ellipseDiameterSum += point.ellipseDiameters();
72e842
     }
72e842
-    m_id = -1;
72e842
+    m_id = 0;
72e842
     m_uniqueId = QPointingDeviceUniqueId();
72e842
     // all points are required to be from the same event, so pressed buttons and modifiers should be the same
72e842
     m_pressedButtons = points.first().pressedButtons();
72e842
diff --git a/src/quick/handlers/qquicksinglepointhandler.cpp b/src/quick/handlers/qquicksinglepointhandler.cpp
72e842
index 89081b4e84..b51f53b74f 100644
72e842
--- a/src/quick/handlers/qquicksinglepointhandler.cpp
72e842
+++ b/src/quick/handlers/qquicksinglepointhandler.cpp
72e842
@@ -75,7 +75,7 @@ bool QQuickSinglePointHandler::wantsPointerEvent(QQuickPointerEvent *event)
72e842
     if (!QQuickPointerDeviceHandler::wantsPointerEvent(event))
72e842
         return false;
72e842
 
72e842
-    if (d->pointInfo.id() != -1) {
72e842
+    if (d->pointInfo.id()) {
72e842
         // We already know which one we want, so check whether it's there.
72e842
         // It's expected to be an update or a release.
72e842
         // If we no longer want it, cancel the grab.
72e842
@@ -125,7 +125,7 @@ bool QQuickSinglePointHandler::wantsPointerEvent(QQuickPointerEvent *event)
72e842
             chosen->setAccepted();
72e842
         }
72e842
     }
72e842
-    return d->pointInfo.id() != -1;
72e842
+    return d->pointInfo.id();
72e842
 }
72e842
 
72e842
 void QQuickSinglePointHandler::handlePointerEventImpl(QQuickPointerEvent *event)
72e842
-- 
72e842
2.35.1
72e842