diff options
Diffstat (limited to 'sway')
-rw-r--r-- | sway/desktop/output.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 6b65768d..476bfd25 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -1102,6 +1102,11 @@ void handle_gamma_control_set_gamma(struct wl_listener *listener, void *data) { const struct wlr_gamma_control_manager_v1_set_gamma_event *event = data; struct sway_output *output = event->output->data; + + if(!output) { + return; + } + output->gamma_lut_changed = true; wlr_output_schedule_frame(output->wlr_output); } |