commit: 05a04a8e07a7aaad5579aefc007e2a7dd8d89693 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Thu Feb 27 11:44:30 2025 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Thu Feb 27 11:56:17 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05a04a8e
dev-qt/qtwayland: backport fix for QTBUG-127821 Change seems trivial enough for straight-to-stable (hopefully). Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> .../files/qtwayland-6.8.2-QTBUG-127821.patch | 19 +++++++++++++++++++ ...wayland-6.8.2.ebuild => qtwayland-6.8.2-r1.ebuild} | 1 + 2 files changed, 20 insertions(+) diff --git a/dev-qt/qtwayland/files/qtwayland-6.8.2-QTBUG-127821.patch b/dev-qt/qtwayland/files/qtwayland-6.8.2-QTBUG-127821.patch new file mode 100644 index 000000000000..1498ada95622 --- /dev/null +++ b/dev-qt/qtwayland/files/qtwayland-6.8.2-QTBUG-127821.patch @@ -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; diff --git a/dev-qt/qtwayland/qtwayland-6.8.2.ebuild b/dev-qt/qtwayland/qtwayland-6.8.2-r1.ebuild similarity index 97% rename from dev-qt/qtwayland/qtwayland-6.8.2.ebuild rename to dev-qt/qtwayland/qtwayland-6.8.2-r1.ebuild index 689cea35b06d..a6163825eb35 100644 --- a/dev-qt/qtwayland/qtwayland-6.8.2.ebuild +++ b/dev-qt/qtwayland/qtwayland-6.8.2-r1.ebuild @@ -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() {
