gamma-control-v1: introduce set_gamma event

This commit is contained in:
Simon Ser 2023-03-06 11:17:30 +01:00 committed by Alexander Orzechowski
parent 1bf245e0fe
commit 70c1a57248
2 changed files with 23 additions and 0 deletions

View file

@ -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;