Blame SOURCES/0023-Client-Connect-drags-being-accepted-to-updating-the-.patch

de89c0
From fcc2f57cefa66339c8cb6632f45a47fbb99bb60d Mon Sep 17 00:00:00 2001
de89c0
From: David Edmundson <davidedmundson@kde.org>
de89c0
Date: Tue, 9 Feb 2021 16:09:21 +0000
de89c0
Subject: [PATCH 23/36] Client: Connect drags being accepted to updating the
de89c0
 source drag icon
de89c0
de89c0
Currently in a multi-process drag and drop when the other client accepts
de89c0
a given mimetype for dropping it calls accept, which is received by the
de89c0
client, but the drag cursor is never updated.
de89c0
de89c0
Instead the drag cursor was updated in the data_device_enter events
de89c0
which only works if we are operating within one process.
de89c0
de89c0
The code existed to handle this existed but both the targetChanged
de89c0
signal and the dragSourceTargetChanged were unused.
de89c0
de89c0
Change-Id: I443f31f1b2ef72d4b5eadaf7115f97544dac883a
de89c0
Reviewed-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
de89c0
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
de89c0
(cherry picked from commit 08e478448a97a440d5a968a5d797f0d7302140c2)
de89c0
---
de89c0
 src/client/qwaylanddatadevice.cpp | 1 +
de89c0
 1 file changed, 1 insertion(+)
de89c0
de89c0
diff --git a/src/client/qwaylanddatadevice.cpp b/src/client/qwaylanddatadevice.cpp
de89c0
index 19944a34..54a69c3c 100644
de89c0
--- a/src/client/qwaylanddatadevice.cpp
de89c0
+++ b/src/client/qwaylanddatadevice.cpp
de89c0
@@ -124,6 +124,7 @@ bool QWaylandDataDevice::startDrag(QMimeData *mimeData, QWaylandWindow *icon)
de89c0
 
de89c0
     m_dragSource.reset(new QWaylandDataSource(m_display->dndSelectionHandler(), mimeData));
de89c0
     connect(m_dragSource.data(), &QWaylandDataSource::cancelled, this, &QWaylandDataDevice::dragSourceCancelled);
de89c0
+    connect(m_dragSource.data(), &QWaylandDataSource::targetChanged, this, &QWaylandDataDevice::dragSourceTargetChanged);
de89c0
 
de89c0
     start_drag(m_dragSource->object(), origin->wlSurface(), icon->wlSurface(), m_display->currentInputDevice()->serial());
de89c0
     return true;
de89c0
-- 
de89c0
2.33.1
de89c0