mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
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:
parent
77ade08158
commit
9e2af19caf
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue