From f1bea43ccccd5824097d8660a2d20b5d0bf506be Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 30 Nov 2022 15:58:08 +0100 Subject: [PATCH] Revert "compositor: enforce surface destruction order" This reverts commit c09d3450d494e21f065c12f199fa5ba8bfd946a9. This doesn't play well with the Xwayland surface role. --- types/wlr_compositor.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/types/wlr_compositor.c b/types/wlr_compositor.c index 5e6de2444..fa4a8aa5b 100644 --- a/types/wlr_compositor.c +++ b/types/wlr_compositor.c @@ -36,14 +36,6 @@ static int max(int fst, int snd) { 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, - "surface was destroyed before its role object"); - return; - } wl_resource_destroy(resource); }