From: Johan Malm Date: Mon, 16 Aug 2021 06:18:08 +0000 (+0100) Subject: layer-shell: replace close() with destroy() X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=9e2af19caf28fff0ac4e537f442bf60874ab23b6;p=proto%2Flabwc.git layer-shell: replace close() with destroy() Update for the wlroots breaking change in https://github.com/swaywm/wlroots/pull/3108 --- 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