dev-qt/qtwayland: backport fix for QTBUG-127821

Change seems trivial enough for straight-to-stable (hopefully).

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2025-02-27 06:44:30 -05:00
parent c50a22fdc0
commit 05a04a8e07
2 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
https://bugreports.qt.io/browse/QTBUG-127821
https://codereview.qt-project.org/c/qt/qtwayland/+/623667
--- a/src/client/qwaylandinputdevice.cpp
+++ b/src/client/qwaylandinputdevice.cpp
@@ -1140,8 +1140,10 @@
// If the window has been destroyed, we still need to report an up event, but it can't
// be handled by the destroyed window (obviously), so send the event here instead.
- QWindowSystemInterface::handleMouseEvent(nullptr, event->timestamp, event->local,
- event->global, event->buttons,
- event->button, event->type,
- event->modifiers);// , Qt::MouseEventSource source = Qt::MouseEventNotSynthesized);
+ QWindowSystemInterface::handleMouseEvent(
+ nullptr, event->timestamp,
+ QPointingDevice::primaryPointingDevice(mParent->seatname()), event->local,
+ event->global, event->buttons, event->button, event->type,
+ event->modifiers); // , Qt::MouseEventSource source =
+ // Qt::MouseEventNotSynthesized);
}
delete mFrameData.event;

View File

@@ -49,6 +49,7 @@ CMAKE_SKIP_TESTS=(
PATCHES=(
"${FILESDIR}"/${PN}-6.8.0-wayland.xml-1.23.0.patch
"${FILESDIR}"/${PN}-6.8.2-QTBUG-127821.patch
)
src_configure() {