From a4dcfbfb313bde5c6f747d7e59f2cf725f1946b2 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Thu, 1 Jul 2021 00:30:32 +0200 Subject: [PATCH] input: fix touch input getting borked on quick tile The decorationPressId never gets reset as the decoration isn't below the touch point anymore after the quick tile, so if we have no decoration under the touch point reset the decorationPressId to -1. CCBUG: 430560 --- src/input.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/input.cpp b/src/input.cpp index 83a7104d7c..9970773e40 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -1223,6 +1223,12 @@ public: Q_UNUSED(time); auto decoration = input()->touch()->decoration(); if (!decoration) { + // can happen when quick tiling + if (input()->touch()->decorationPressId() == id) { + m_lastGlobalTouchPos = QPointF(); + m_lastLocalTouchPos = QPointF(); + input()->touch()->setDecorationPressId(-1); + } return false; } if (input()->touch()->decorationPressId() == -1) {