From d695003498d156c545728409f9d8fad44a506f30 Mon Sep 17 00:00:00 2001 From: emersion Date: Fri, 8 Mar 2019 14:28:24 +0100 Subject: Add apply and test events to manager --- 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 55d15528..b7272cfe 100644 --- a/include/wlr/types/wlr_output_management_v1.h +++ b/include/wlr/types/wlr_output_management_v1.h @@ -9,6 +9,7 @@ #ifndef WLR_TYPES_WLR_OUTPUT_MANAGEMENT_V1_H #define WLR_TYPES_WLR_OUTPUT_MANAGEMENT_V1_H +#include #include #include @@ -21,6 +22,8 @@ struct wlr_output_manager_v1 { uint32_t serial; struct { + struct wl_signal apply; // wlr_output_configuration_v1 + struct wl_signal test; // wlr_output_configuration_v1 struct wl_signal destroy; } events; @@ -47,7 +50,12 @@ struct wlr_output_head_v1 { struct wlr_output_configuration_v1 { struct wl_list heads; // wlr_output_configuration_head_v1::link + + struct wlr_output_manager_v1 *manager; uint32_t serial; + bool finalized; // client has requested to apply the config + bool finished; // feedback has been sent by the compositor + struct wl_resource *resource; // can be NULL }; struct wlr_output_configuration_head_v1 { @@ -69,6 +77,10 @@ void wlr_output_manager_v1_set_configuration( struct wlr_output_configuration_v1 *wlr_output_configuration_v1_create(void); void wlr_output_configuration_v1_destroy( struct wlr_output_configuration_v1 *config); +void wlr_output_configuration_v1_send_succeeded( + struct wlr_output_configuration_v1 *config); +void wlr_output_configuration_v1_send_failed( + struct wlr_output_configuration_v1 *config); struct wlr_output_configuration_head_v1 * wlr_output_configuration_head_v1_create( -- cgit v1.2.3