compositor: use defunct_role_object error

This commit is contained in:
Kirill Primak 2022-11-29 17:50:15 +03:00 committed by Simon Ser
parent fac7a5cc9d
commit 87e7584dd4

View File

@ -38,9 +38,8 @@ static void surface_handle_destroy(struct wl_client *client,
struct wl_resource *resource) { struct wl_resource *resource) {
struct wlr_surface *surface = wlr_surface_from_resource(resource); struct wlr_surface *surface = wlr_surface_from_resource(resource);
if (surface->role_data != NULL) { if (surface->role_data != NULL) {
// TODO: send WL_SURFACE_ERROR_DEFUNCT_ROLE_OBJECT wl_resource_post_error(resource,
// https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/278 WL_SURFACE_ERROR_DEFUNCT_ROLE_OBJECT,
wl_resource_post_error(resource, -1,
"surface was destroyed before its role object"); "surface was destroyed before its role object");
return; return;
} }