Commit b5ea9381 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.
parent 40fb202a
Pipeline #200419 passed with stage
in 17 minutes and 57 seconds
......@@ -227,7 +227,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