From 45c0877e3433f2b057f9125a8bc735057e088e6c Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Tue, 30 Jun 2020 13:07:26 +0200 Subject: [PATCH] layer-shell: upgrade to v3, implement destructor --- protocol/wlr-layer-shell-unstable-v1.xml | 16 +++++++++++++--- types/wlr_layer_shell_v1.c | 1 + 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/protocol/wlr-layer-shell-unstable-v1.xml b/protocol/wlr-layer-shell-unstable-v1.xml index adc6a176c..fa67001df 100644 --- a/protocol/wlr-layer-shell-unstable-v1.xml +++ b/protocol/wlr-layer-shell-unstable-v1.xml @@ -25,7 +25,7 @@ THIS SOFTWARE. - + Clients can use this interface to assign the surface_layer role to wl_surfaces. Such surfaces are assigned to a "layer" of the output and @@ -82,9 +82,19 @@ + + + + + + This request indicates that the client will not use the layer_shell + object any more. Objects that have been created through this instance + are not affected. + + - + An interface that may be implemented by a wl_surface, for surfaces that are designed to be rendered as a layer of a stacked desktop-like @@ -295,7 +305,7 @@ Layer is double-buffered, see wl_surface.commit. - + diff --git a/types/wlr_layer_shell_v1.c b/types/wlr_layer_shell_v1.c index 9611ed7ff..6746f2166 100644 --- a/types/wlr_layer_shell_v1.c +++ b/types/wlr_layer_shell_v1.c @@ -445,6 +445,7 @@ static void layer_shell_handle_get_layer_surface(struct wl_client *wl_client, static const struct zwlr_layer_shell_v1_interface layer_shell_implementation = { .get_layer_surface = layer_shell_handle_get_layer_surface, + .destroy = resource_handle_destroy, }; static void layer_shell_bind(struct wl_client *wl_client, void *data,