Merge branch 'deferred-cursor' into 'master'

Draft: cursor_move defer when enable ADAPTIVE_SYNC

See merge request wlroots/wlroots!5193
This commit is contained in:
akihiro yamaguchi 2026-02-03 09:25:01 +00:00
commit 5e54e2c232
3 changed files with 70 additions and 2 deletions

View file

@ -2406,6 +2406,13 @@ 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
struct timespec cursor_now;
clock_gettime(CLOCK_MONOTONIC, &cursor_now);
wlr_output_cursor_move_all_deferred(output, &cursor_now);
// 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