Skip to content

Commit

Permalink
gamma-control-v1: schedule frame when resetting gamma LUT
Browse files Browse the repository at this point in the history
Closes: swaywm#2632
  • Loading branch information
emersion authored and Clancy Kornie committed Jan 12, 2021
1 parent dacf86e commit 09410c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/wlr_gamma_control_v1.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ static void gamma_control_destroy(struct wlr_gamma_control_v1 *gamma_control) {
if (gamma_control == NULL) {
return;
}

wlr_output_set_gamma(gamma_control->output, 0, NULL, NULL, NULL);
// Gamma LUT will be applied on next output commit
wlr_output_schedule_frame(gamma_control->output);

wl_resource_set_user_data(gamma_control->resource, NULL);
wl_list_remove(&gamma_control->output_destroy_listener.link);
wl_list_remove(&gamma_control->output_commit_listener.link);
Expand Down

0 comments on commit 09410c3

Please sign in to comment.