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

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