aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-14 09:52:13 +0100
committerSimon Ser <contact@emersion.fr>2022-11-14 09:52:13 +0100
commit9f793d350379872aeee56ea5c476adfeedc8bc88 (patch)
tree52114e48da730f402138869e636a32a43e94e042 /include
parent4026da53f8a8e39d84dd695fc5afc5badfd4c649 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_layer_shell_v1.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_layer_shell_v1.h b/include/wlr/types/wlr_layer_shell_v1.h
index 034ab7d2..4b231b7d 100644
--- a/include/wlr/types/wlr_layer_shell_v1.h
+++ b/include/wlr/types/wlr_layer_shell_v1.h
@@ -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