mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-25 01:40:56 -05:00
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:
commit
5e54e2c232
3 changed files with 70 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue