From 3a16ca8ace9171ecdc4f4fcfb47207f2a718ca09 Mon Sep 17 00:00:00 2001 From: yuiiio Date: Fri, 16 Aug 2024 16:20:53 +0900 Subject: [PATCH] move_all_deferred_cursor trigger in wlr_scene cursor move before scanout --- types/scene/wlr_scene.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index 0c854c5b7..5e61d9de6 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -2319,6 +2319,10 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output, wlr_output_state_set_damage(state, &scene_output->pending_commit_damage); + // before scanout early return, + // update cursor if deferred + wlr_output_cursor_move_all_deferred(output); + // We only want to try direct scanout if: // - There is only one entry in the render list // - There are no color transforms that need to be applied