aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-07-22 17:37:18 +0100
committeremersion <contact@emersion.fr>2018-08-02 23:33:59 +0100
commit73b71118463d67581c2e2c38d263742ce35ec7d8 (patch)
treef8c265c5c3cab84da3c27662a2ada74f2d6110f2
parent2ebecb6727b55dbdfe067d27bdb1679014e66879 (diff)
gamma-control-v1: reset gamma table when control is destroyed
-rw-r--r--types/wlr_gamma_control_v1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types/wlr_gamma_control_v1.c b/types/wlr_gamma_control_v1.c
index 063837fc..c347a13d 100644
--- a/types/wlr_gamma_control_v1.c
+++ b/types/wlr_gamma_control_v1.c
@@ -20,7 +20,7 @@ static void gamma_control_destroy(struct wlr_gamma_control_v1 *gamma_control) {
if (gamma_control == NULL) {
return;
}
- // TODO: reset gamma table
+ wlr_output_set_gamma(gamma_control->output, 0, NULL, NULL, NULL);
wl_resource_set_user_data(gamma_control->resource, NULL);
wl_list_remove(&gamma_control->output_destroy_listener.link);
wl_list_remove(&gamma_control->link);