From 9e2af19caf28fff0ac4e537f442bf60874ab23b6 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Mon, 16 Aug 2021 07:18:08 +0100 Subject: [PATCH] layer-shell: replace close() with destroy() Update for the wlroots breaking change in https://github.com/swaywm/wlroots/pull/3108 --- src/layers.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/layers.c b/src/layers.c index 0e52b3b6..88c879b1 100644 --- a/src/layers.c +++ b/src/layers.c @@ -150,8 +150,7 @@ arrange_layer(struct wlr_output *output, struct wl_list *list, box.y -= state->margin.bottom; } if (box.width < 0 || box.height < 0) { - wlr_log(WLR_ERROR, "protocol error"); - wlr_layer_surface_v1_close(layer); + wlr_log(WLR_ERROR, "surface has no positive size"); continue; } @@ -240,7 +239,7 @@ output_destroy_notify(struct wl_listener *listener, void *data) wl_container_of(listener, layer, output_destroy); layer->layer_surface->output = NULL; wl_list_remove(&layer->output_destroy.link); - wlr_layer_surface_v1_close(layer->layer_surface); + wlr_layer_surface_v1_destroy(layer->layer_surface); } static void