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

View file

@ -85,8 +85,10 @@ void CWLDataOfferResource::sendData() {
if (!source) if (!source)
return; return;
resource->sendSourceActions(7); if (resource->version() >= 3) {
resource->sendAction(WL_DATA_DEVICE_MANAGER_DND_ACTION_MOVE); resource->sendSourceActions(7);
resource->sendAction(WL_DATA_DEVICE_MANAGER_DND_ACTION_MOVE);
}
for (auto& m : source->mimes()) { for (auto& m : source->mimes()) {
LOGM(LOG, " | offer {:x} supports mime {}", (uintptr_t)this, m); LOGM(LOG, " | offer {:x} supports mime {}", (uintptr_t)this, m);