From ef015fb9b8fffe0dbf751a98397cf998e753163d Mon Sep 17 00:00:00 2001 From: David Redondo Date: Tue, 11 Feb 2025 10:40:41 +0100 Subject: [PATCH] Send synthesized button release event immediately ...not only on the next frame. Change-Id: Iad31a3d80576c5cd8fa3ba7f64a39d7a6a01337a Reviewed-by: David Edmundson (cherry picked from commit 1260aaf9549b180c192fb5c01b466945ec0575d1) Reviewed-by: Qt Cherry-pick Bot --- src/plugins/platforms/wayland/qwaylandinputdevice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platforms/wayland/qwaylandinputdevice.cpp b/src/plugins/platforms/wayland/qwaylandinputdevice.cpp index f97a28a0cf4..170e80f806c 100644 --- a/src/plugins/platforms/wayland/qwaylandinputdevice.cpp +++ b/src/plugins/platforms/wayland/qwaylandinputdevice.cpp @@ -863,6 +863,7 @@ void QWaylandInputDevice::Pointer::invalidateFocus() void QWaylandInputDevice::Pointer::releaseButtons() { setFrameEvent(new ReleaseEvent(nullptr, mParent->mTime, mSurfacePos, mGlobalPos, Qt::NoButton, Qt::NoButton, mParent->modifiers())); + flushFrameEvent(); } void QWaylandInputDevice::Pointer::leavePointers()