diff options
-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) { | |||
1102 | const struct wlr_gamma_control_manager_v1_set_gamma_event *event = data; | 1102 | const struct wlr_gamma_control_manager_v1_set_gamma_event *event = data; |
1103 | 1103 | ||
1104 | struct sway_output *output = event->output->data; | 1104 | struct sway_output *output = event->output->data; |
1105 | |||
1106 | if(!output) { | ||
1107 | return; | ||
1108 | } | ||
1109 | |||
1105 | output->gamma_lut_changed = true; | 1110 | output->gamma_lut_changed = true; |
1106 | wlr_output_schedule_frame(output->wlr_output); | 1111 | wlr_output_schedule_frame(output->wlr_output); |
1107 | } | 1112 | } |