mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
gamma-control-v1: reset gamma table when control is destroyed
This commit is contained in:
parent
2ebecb6727
commit
73b7111846
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue