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

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