mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-18 22:05:48 -05:00
Ensure the maximum cursor latency(10Hz)
This commit is contained in:
parent
3a16ca8ace
commit
fae4d6c935
3 changed files with 37 additions and 7 deletions
|
|
@ -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);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue