diff --git a/src/libkwineffects/kwinoffscreenquickview.cpp b/src/libkwineffects/kwinoffscreenquickview.cpp index ffc15e0d74..539f94c1d1 100644 --- a/src/libkwineffects/kwinoffscreenquickview.cpp +++ b/src/libkwineffects/kwinoffscreenquickview.cpp @@ -384,8 +384,6 @@ bool OffscreenQuickView::forwardTouchDown(qint32 id, const QPointF &pos, quint32 bool OffscreenQuickView::forwardTouchMotion(qint32 id, const QPointF &pos, quint32 time) { - Q_UNUSED(time) - d->updateTouchState(Qt::TouchPointMoved, id, pos); #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) @@ -393,6 +391,7 @@ bool OffscreenQuickView::forwardTouchMotion(qint32 id, const QPointF &pos, quint #else QTouchEvent event(QEvent::TouchUpdate, d->touchDevice, Qt::NoModifier, d->touchPoints); #endif + event.setTimestamp(time); QCoreApplication::sendEvent(d->m_view, &event); return event.isAccepted(); @@ -400,8 +399,6 @@ bool OffscreenQuickView::forwardTouchMotion(qint32 id, const QPointF &pos, quint bool OffscreenQuickView::forwardTouchUp(qint32 id, quint32 time) { - Q_UNUSED(time) - d->updateTouchState(Qt::TouchPointReleased, id, QPointF{}); #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) @@ -409,6 +406,7 @@ bool OffscreenQuickView::forwardTouchUp(qint32 id, quint32 time) #else QTouchEvent event(QEvent::TouchEnd, d->touchDevice, Qt::NoModifier, d->touchPoints); #endif + event.setTimestamp(time); QCoreApplication::sendEvent(d->m_view, &event); return event.isAccepted();