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 0000000000000..1498ada95622b --- /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 689cea35b06d0..a6163825eb35a 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() {