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

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