diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2022-11-29 17:50:15 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-04-14 17:04:00 +0200 |
commit | 87e7584dd44f2817fafa4d1e70646fc5c501e104 (patch) | |
tree | 6be096ba6cd40daef63e1a0ffda3ba5b9dbd9d20 | |
parent | fac7a5cc9d30cef8c17b8fccb31a28b02ff4f2e7 (diff) |
compositor: use defunct_role_object error
-rw-r--r-- | types/wlr_compositor.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/types/wlr_compositor.c b/types/wlr_compositor.c index f43641a2..6a882a0a 100644 --- a/types/wlr_compositor.c +++ b/types/wlr_compositor.c @@ -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; } |