]> git.mdlowis.com Git - proto/labwc.git/commitdiff
scene-helpers: use wlr_scene_output_needs_frame
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 13 Jun 2025 16:27:55 +0000 (18:27 +0200)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 13 Jun 2025 16:37:44 +0000 (18:37 +0200)
src/common/scene-helpers.c

index c05a5226604e36c2a3eb28eed059f2786f615056..e40e41cc16ce90bcc23e5a54ed73c6f50a285891 100644 (file)
@@ -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;
        }