Ensure the maximum cursor latency(10Hz)

This commit is contained in:
yuiiio 2025-11-17 21:56:24 +09:00
parent 3a16ca8ace
commit fae4d6c935
3 changed files with 37 additions and 7 deletions

View file

@ -2321,7 +2321,10 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output,
// before scanout early return,
// update cursor if deferred
wlr_output_cursor_move_all_deferred(output);
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