diff options
-rw-r--r-- | sway/desktop/output.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index f936b2a8..27ede68e 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -247,6 +247,13 @@ static int output_repaint_timer_handler(void *data) { | |||
247 | .color_transform = output->color_transform, | 247 | .color_transform = output->color_transform, |
248 | }; | 248 | }; |
249 | 249 | ||
250 | struct wlr_output *wlr_output = output->wlr_output; | ||
251 | struct wlr_scene_output *scene_output = output->scene_output; | ||
252 | if (!wlr_output->needs_frame && !output->gamma_lut_changed && | ||
253 | !pixman_region32_not_empty(&scene_output->pending_commit_damage)) { | ||
254 | return 0; | ||
255 | } | ||
256 | |||
250 | struct wlr_output_state pending; | 257 | struct wlr_output_state pending; |
251 | wlr_output_state_init(&pending); | 258 | wlr_output_state_init(&pending); |
252 | if (!wlr_scene_output_build_state(output->scene_output, &pending, &opts)) { | 259 | if (!wlr_scene_output_build_state(output->scene_output, &pending, &opts)) { |