From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Fri, 13 Jun 2025 16:27:55 +0000 (+0200) Subject: scene-helpers: use wlr_scene_output_needs_frame X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=ba604e3a8cb82a9f5cdea411bba4aea798e6e68a;p=proto%2Flabwc.git scene-helpers: use wlr_scene_output_needs_frame --- diff --git a/src/common/scene-helpers.c b/src/common/scene-helpers.c index c05a5226..e40e41cc 100644 --- a/src/common/scene-helpers.c +++ b/src/common/scene-helpers.c @@ -85,10 +85,7 @@ lab_wlr_scene_output_commit(struct wlr_scene_output *scene_output, * rendering on every output commit and overloads CPU. * We also need to verify the necessity of wants_magnification. */ - if (!wlr_output->needs_frame - && !pixman_region32_not_empty( - &scene_output->WLR_PRIVATE.pending_commit_damage) - && !wants_magnification) { + if (!wlr_scene_output_needs_frame(scene_output) && !wants_magnification) { return true; }