diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-06-12 16:16:27 +0200 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-06-12 16:16:27 +0200 |
| commit | 1bae19ce85ae9a25f2dddb6cee8bbd6ed3872ade (patch) | |
| tree | ffbfc7bd358c3c935f186f7de6326ea20b589116 /src/protocols/core/DataDevice.cpp | |
| parent | f687105eff61aebff34669852e7153584286a357 (diff) | |
datadevice: only send actions for ver >= 3
fixes #6444
Diffstat (limited to 'src/protocols/core/DataDevice.cpp')
| -rw-r--r-- | src/protocols/core/DataDevice.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/protocols/core/DataDevice.cpp b/src/protocols/core/DataDevice.cpp index ca044e93..c1de8f83 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); |
