mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 08:32:30 +00:00
compositor: use defunct_role_object error
This commit is contained in:
parent
fac7a5cc9d
commit
87e7584dd4
@ -38,9 +38,8 @@ static void surface_handle_destroy(struct wl_client *client,
|
||||
struct wl_resource *resource) {
|
||||
struct wlr_surface *surface = wlr_surface_from_resource(resource);
|
||||
if (surface->role_data != NULL) {
|
||||
// TODO: send WL_SURFACE_ERROR_DEFUNCT_ROLE_OBJECT
|
||||
// https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/278
|
||||
wl_resource_post_error(resource, -1,
|
||||
wl_resource_post_error(resource,
|
||||
WL_SURFACE_ERROR_DEFUNCT_ROLE_OBJECT,
|
||||
"surface was destroyed before its role object");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user