output: Use wlr_scene_output_needs_frame

This commit is contained in:
Alexander Orzechowski 2024-08-14 12:52:51 -04:00 committed by Kirill Primak
parent 6576b99c24
commit 5a3621460f

View file

@ -266,8 +266,7 @@ static int output_repaint_timer_handler(void *data) {
struct wlr_output *wlr_output = output->wlr_output; struct wlr_output *wlr_output = output->wlr_output;
struct wlr_scene_output *scene_output = output->scene_output; struct wlr_scene_output *scene_output = output->scene_output;
if (!wlr_output->needs_frame && !output->gamma_lut_changed && if (!wlr_scene_output_needs_frame(scene_output)) {
!pixman_region32_not_empty(&scene_output->pending_commit_damage)) {
return 0; return 0;
} }