Commit 37c6fb5e authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

wayland: Send drm-lease-device::done event to the correct resource

When sending the drm_lease_device_v1.done event, we pass a connector
resource, but we need to pass a device resource.


(cherry picked from commit b5ea9381)
parent 913ca1d6
Pipeline #200420 passed with stage
in 25 minutes and 7 seconds
......@@ -222,7 +222,12 @@ void DrmLeaseConnectorV1InterfacePrivate::withdraw()
withdrawn = true;
for (const auto &resource : resourceMap()) {
send_withdrawn(resource->handle);
DrmLeaseDeviceV1InterfacePrivate::get(device)->send_done(resource->handle);
}
auto devicePrivate = DrmLeaseDeviceV1InterfacePrivate::get(device);
const auto deviceMap = devicePrivate->resourceMap();
for (DrmLeaseDeviceV1InterfacePrivate::Resource *resource : deviceMap) {
devicePrivate->send_done(resource->handle);
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment