[neon/qt6/qt6-wayland/Neon/release] debian/patches: https://invent.kde.org/qt/qt/qtwayland/-/commit/22daca49b807fefba58113a06b86df4274e49f62 client: Fix crash on dnd updates after client facing drag ends

Jonathan Esk-Riddell null at kde.org
Tue Jul 4 10:30:15 BST 2023


Git commit b1e3a815f256ff719fbca613d35229107c034b68 by Jonathan Esk-Riddell.
Committed on 04/07/2023 at 09:30.
Pushed by jriddell into branch 'Neon/release'.

https://invent.kde.org/qt/qt/qtwayland/-/commit/22daca49b807fefba58113a06b86df4274e49f62 client: Fix crash on dnd updates after client facing drag ends

A  +14   -0    debian/patches/22daca49b807fefba58113a06b86df4274e49f62.diff
A  +1    -0    debian/patches/series

https://invent.kde.org/neon/qt6/qt6-wayland/-/commit/b1e3a815f256ff719fbca613d35229107c034b68

diff --git a/debian/patches/22daca49b807fefba58113a06b86df4274e49f62.diff b/debian/patches/22daca49b807fefba58113a06b86df4274e49f62.diff
new file mode 100644
index 0000000..e88ecee
--- /dev/null
+++ b/debian/patches/22daca49b807fefba58113a06b86df4274e49f62.diff
@@ -0,0 +1,14 @@
+diff --git a/src/client/qwaylanddatadevice.cpp b/src/client/qwaylanddatadevice.cpp
+index e9d82100fad675746adfa9042ebffb379d34d458..80a9a7739159da0f266cda9d5f7de65deb5d46bd 100644
+--- a/src/client/qwaylanddatadevice.cpp
++++ b/src/client/qwaylanddatadevice.cpp
+@@ -101,6 +101,9 @@ bool QWaylandDataDevice::startDrag(QMimeData *mimeData, Qt::DropActions supporte
+     connect(m_dragSource.data(), &QWaylandDataSource::cancelled, this, &QWaylandDataDevice::dragSourceCancelled);
+     connect(m_dragSource.data(), &QWaylandDataSource::dndResponseUpdated, this, [this](bool accepted, Qt::DropAction action) {
+             auto drag = static_cast<QWaylandDrag *>(QGuiApplicationPrivate::platformIntegration()->drag());
++            if (!drag->currentDrag()) {
++                return;
++            }
+             // in old versions drop action is not set, so we guess
+             if (m_dragSource->version() < 3) {
+                 drag->setResponse(accepted);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1b3046f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+22daca49b807fefba58113a06b86df4274e49f62.diff


More information about the Neon-commits mailing list