diff options
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index edf77fbc..f18a118f 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -386,7 +386,7 @@ static void damage_handle_frame(struct wl_listener *listener, void *data) { | |||
386 | void output_damage_whole(struct sway_output *output) { | 386 | void output_damage_whole(struct sway_output *output) { |
387 | // The output can exist with no wlr_output if it's just been disconnected | 387 | // The output can exist with no wlr_output if it's just been disconnected |
388 | // and the transaction to evacuate it has't completed yet. | 388 | // and the transaction to evacuate it has't completed yet. |
389 | if (output && output->wlr_output) { | 389 | if (output && output->wlr_output && output->damage) { |
390 | wlr_output_damage_add_whole(output->damage); | 390 | wlr_output_damage_add_whole(output->damage); |
391 | } | 391 | } |
392 | } | 392 | } |