mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 07:51:28 +00:00
Apply gamma LUT when an output re-enabled
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3679
This commit is contained in:
parent
86f96a786b
commit
5bdd608514
|
@ -964,6 +964,11 @@ static void handle_commit(struct wl_listener *listener, void *data) {
|
||||||
wlr_damage_ring_set_bounds(&output->damage_ring, width, height);
|
wlr_damage_ring_set_bounds(&output->damage_ring, width, height);
|
||||||
wlr_output_schedule_frame(output->wlr_output);
|
wlr_output_schedule_frame(output->wlr_output);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Next time the output is enabled, try to re-apply the gamma LUT
|
||||||
|
if ((event->committed & WLR_OUTPUT_STATE_ENABLED) && !output->wlr_output->enabled) {
|
||||||
|
output->gamma_lut_changed = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void handle_present(struct wl_listener *listener, void *data) {
|
static void handle_present(struct wl_listener *listener, void *data) {
|
||||||
|
|
Loading…
Reference in a new issue