aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasyl Vavrychuk <vvavrychuk@gmail.com>2023-02-17 12:23:45 +0200
committerVasyl Vavrychuk <vvavrychuk@gmail.com>2023-02-17 10:24:47 +0000
commit58067a20844d23527c29b4382a2b182c6590317e (patch)
tree9f14d45355c2cb38e713315e2edada5d919adc3a
parentc73e20628ad3cf8a38fc1cebd061a49da8708394 (diff)
fullscreen-shell: add release request handler
-rw-r--r--types/wlr_fullscreen_shell_v1.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/types/wlr_fullscreen_shell_v1.c b/types/wlr_fullscreen_shell_v1.c
index 4d4ded48..89c6e74c 100644
--- a/types/wlr_fullscreen_shell_v1.c
+++ b/types/wlr_fullscreen_shell_v1.c
@@ -9,6 +9,11 @@
static const struct zwp_fullscreen_shell_v1_interface shell_impl;
+static void shell_handle_release(struct wl_client *client,
+ struct wl_resource *resource) {
+ wl_resource_destroy(resource);
+}
+
static struct wlr_fullscreen_shell_v1 *shell_from_resource(
struct wl_resource *resource) {
assert(wl_resource_instance_of(resource,
@@ -58,6 +63,7 @@ static void shell_handle_present_surface_for_mode(struct wl_client *client,
}
static const struct zwp_fullscreen_shell_v1_interface shell_impl = {
+ .release = shell_handle_release,
.present_surface = shell_handle_present_surface,
.present_surface_for_mode = shell_handle_present_surface_for_mode,
};