layer-shell: replace close() with destroy()

Update for the wlroots breaking change in
https://github.com/swaywm/wlroots/pull/3108
This commit is contained in:
Johan Malm 2021-08-16 07:18:08 +01:00
parent 77ade08158
commit 9e2af19caf

View file

@ -150,8 +150,7 @@ arrange_layer(struct wlr_output *output, struct wl_list *list,
box.y -= state->margin.bottom; box.y -= state->margin.bottom;
} }
if (box.width < 0 || box.height < 0) { if (box.width < 0 || box.height < 0) {
wlr_log(WLR_ERROR, "protocol error"); wlr_log(WLR_ERROR, "surface has no positive size");
wlr_layer_surface_v1_close(layer);
continue; continue;
} }
@ -240,7 +239,7 @@ output_destroy_notify(struct wl_listener *listener, void *data)
wl_container_of(listener, layer, output_destroy); wl_container_of(listener, layer, output_destroy);
layer->layer_surface->output = NULL; layer->layer_surface->output = NULL;
wl_list_remove(&layer->output_destroy.link); 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 static void