From 70c1a5724814d2f786f7d3a0e55a05f11af14029 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 6 Mar 2023 11:17:30 +0100 Subject: gamma-control-v1: introduce set_gamma event --- include/wlr/types/wlr_gamma_control_v1.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_gamma_control_v1.h b/include/wlr/types/wlr_gamma_control_v1.h index 02557148..3d2a4382 100644 --- a/include/wlr/types/wlr_gamma_control_v1.h +++ b/include/wlr/types/wlr_gamma_control_v1.h @@ -11,14 +11,21 @@ struct wlr_gamma_control_manager_v1 { struct { struct wl_signal destroy; + struct wl_signal set_gamma; // struct wlr_gamma_control_manager_v1_set_gamma_event } events; void *data; }; +struct wlr_gamma_control_manager_v1_set_gamma_event { + struct wlr_output *output; + struct wlr_gamma_control_v1 *control; // may be NULL +}; + struct wlr_gamma_control_v1 { struct wl_resource *resource; struct wlr_output *output; + struct wlr_gamma_control_manager_v1 *manager; struct wl_list link; uint16_t *table; -- cgit v1.2.3