layer-shell-v1: specify version in constructor

This allows compositors to indicate which features they support,
and is required to eventually make this API stable.

References: https://github.com/swaywm/sway/issues/7260
This commit is contained in:
Simon Ser 2022-11-14 09:52:13 +01:00
parent 4026da53f8
commit 9f793d3503
2 changed files with 7 additions and 4 deletions

View file

@ -122,7 +122,8 @@ struct wlr_layer_surface_v1 {
void *data;
};
struct wlr_layer_shell_v1 *wlr_layer_shell_v1_create(struct wl_display *display);
struct wlr_layer_shell_v1 *wlr_layer_shell_v1_create(struct wl_display *display,
uint32_t version);
/**
* Notifies the layer surface to configure itself with this width/height. The