From 1bae19ce85ae9a25f2dddb6cee8bbd6ed3872ade Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 12 Jun 2024 16:16:27 +0200 Subject: [PATCH] datadevice: only send actions for ver >= 3 fixes #6444 --- src/protocols/core/DataDevice.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/protocols/core/DataDevice.cpp b/src/protocols/core/DataDevice.cpp index ca044e93d..c1de8f83f 100644 --- a/src/protocols/core/DataDevice.cpp +++ b/src/protocols/core/DataDevice.cpp @@ -85,8 +85,10 @@ void CWLDataOfferResource::sendData() { if (!source) return; - resource->sendSourceActions(7); - resource->sendAction(WL_DATA_DEVICE_MANAGER_DND_ACTION_MOVE); + if (resource->version() >= 3) { + resource->sendSourceActions(7); + resource->sendAction(WL_DATA_DEVICE_MANAGER_DND_ACTION_MOVE); + } for (auto& m : source->mimes()) { LOGM(LOG, " | offer {:x} supports mime {}", (uintptr_t)this, m);