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
This commit is contained in:
Xaver Hugl 2021-07-01 00:30:32 +02:00
parent 893f95eed8
commit a4dcfbfb31

View file

@ -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) {