aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c5
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);
}