mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 16:42:26 +00:00
drm-lease-v1: reject the lease request by default
If the compositor didn't call wlr_drm_lease_request_v1_grant() nor wlr_drm_lease_request_v1_reject(), then reject the lease.
This commit is contained in:
parent
11d073ab09
commit
5b0719b17c
@ -350,10 +350,14 @@ static void drm_lease_request_v1_handle_submit(
|
|||||||
|
|
||||||
request->lease_resource = lease_resource;
|
request->lease_resource = lease_resource;
|
||||||
|
|
||||||
/* TODO: reject the request if the user does not grant it */
|
|
||||||
wl_signal_emit_mutable(&request->device->manager->events.request,
|
wl_signal_emit_mutable(&request->device->manager->events.request,
|
||||||
request);
|
request);
|
||||||
|
|
||||||
|
/* If the compositor didn't act upon the request, reject it */
|
||||||
|
if (!request->invalid && wl_resource_get_user_data(lease_resource) == NULL) {
|
||||||
|
wlr_drm_lease_request_v1_reject(request);
|
||||||
|
}
|
||||||
|
|
||||||
/* Request is done */
|
/* Request is done */
|
||||||
wl_resource_destroy(resource);
|
wl_resource_destroy(resource);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user