datadevice: only send actions for ver >= 3

fixes #6444
This commit is contained in:
Vaxry 2024-06-12 16:16:27 +02:00
parent f687105eff
commit 1bae19ce85
1 changed files with 4 additions and 2 deletions

View File

@ -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);