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

@ -51,6 +51,7 @@ struct wlr_output_cursor {
uint64_t wait_point;
struct wl_list link;
struct timespec last_presentation;
bool deferred;
double deferred_x, deferred_y;
@ -462,7 +463,7 @@ bool wlr_output_cursor_set_buffer(struct wlr_output_cursor *cursor,
struct wlr_buffer *buffer, int32_t hotspot_x, int32_t hotspot_y);
bool wlr_output_cursor_move(struct wlr_output_cursor *cursor,
double x, double y);
void wlr_output_cursor_move_all_deferred(struct wlr_output *output);
void wlr_output_cursor_move_all_deferred(struct wlr_output *output, struct timespec *now);
void wlr_output_cursor_destroy(struct wlr_output_cursor *cursor);
/**