From d89285f7835d87cb873e2c5de1219ebdaae5d929 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 7 Jun 2022 21:52:47 +0200 Subject: output-management-v1: add wlr_output_head_v1_state_apply() This function applies a configuration sent by a client on a struct wlr_output_state. --- include/wlr/types/wlr_output_management_v1.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_output_management_v1.h b/include/wlr/types/wlr_output_management_v1.h index 0b8d8c20..be56e812 100644 --- a/include/wlr/types/wlr_output_management_v1.h +++ b/include/wlr/types/wlr_output_management_v1.h @@ -141,4 +141,16 @@ struct wlr_output_configuration_head_v1 * wlr_output_configuration_head_v1_create( struct wlr_output_configuration_v1 *config, struct wlr_output *output); +/** + * Apply the head state on the supplied struct wlr_output_state. + * + * Compositors can then pass the resulting struct wlr_output_state to + * wlr_output_commit_state() or wlr_output_test_state(). + * + * The position needs to be applied manually by the caller. + */ +void wlr_output_head_v1_state_apply( + const struct wlr_output_head_v1_state *head_state, + struct wlr_output_state *output_state); + #endif -- cgit v1.2.3