aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-03-09 23:12:27 +0100
committerDrew DeVault <sir@cmpwn.com>2019-04-11 09:19:57 -0600
commit8136605cfb72f2addc16c126519dd3a63e803ec2 (patch)
tree345fff29eb53b4cd731a45d29efd4c0e8646b64a /include/wlr
parentd71ebde5457d23669d5bb4697f1ffb9b510020ee (diff)
output-management-v1: support applying configuration
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_output_management_v1.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/wlr/types/wlr_output_management_v1.h b/include/wlr/types/wlr_output_management_v1.h
index 4622e6da..c6429e04 100644
--- a/include/wlr/types/wlr_output_management_v1.h
+++ b/include/wlr/types/wlr_output_management_v1.h
@@ -56,11 +56,12 @@ struct wlr_output_head_v1 {
struct wlr_output_configuration_v1 {
struct wl_list heads; // wlr_output_configuration_head_v1::link
+ // client state
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 wl_resource *resource; // can be NULL if destroyed early
};
struct wlr_output_configuration_head_v1 {
@@ -68,7 +69,8 @@ struct wlr_output_configuration_head_v1 {
struct wlr_output_configuration_v1 *config;
struct wl_list link; // wlr_output_configuration_v1::heads
- struct wl_resource *resource; // can be NULL
+ // client state
+ struct wl_resource *resource; // can be NULL if finalized or disabled
struct wl_listener output_destroy;
};