From 670915eeeaa2faee95cb3c32c64199da4379adf8 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 13 Jun 2023 10:44:26 +0200 Subject: output: add wlr_output_state_set_layers() --- include/wlr/types/wlr_output.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 3ca8863a..a38a431a 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -580,6 +580,13 @@ bool wlr_output_state_set_gamma_lut(struct wlr_output_state *state, */ void wlr_output_state_set_damage(struct wlr_output_state *state, const pixman_region32_t *damage); +/** + * Set the state's layers. + * + * The array must be kept valid by the caller until wlr_output_state_finish(). + */ +void wlr_output_state_set_layers(struct wlr_output_state *state, + struct wlr_output_layer_state *layers, size_t layers_len); /** -- cgit v1.2.3