diff options
author | emersion <contact@emersion.fr> | 2019-03-08 14:28:24 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-04-11 09:19:57 -0600 |
commit | d695003498d156c545728409f9d8fad44a506f30 (patch) | |
tree | c3d1cd4bb948b15a47c162f1f50d9ed532a1b066 /include/wlr | |
parent | 0b64ecc162539907e60f6f3c4494e9853a02d74f (diff) |
Add apply and test events to manager
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_output_management_v1.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 <stdbool.h> #include <wayland-server.h> #include <wlr/types/wlr_output.h> @@ -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( |