cursor_move defer when enable ADAPTIVE_SYNC

split out from https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4340

Co-authored-by: Daniel Hill <daniel@gluo.nz>
This commit is contained in:
yuiiio 2025-11-17 17:58:06 +09:00
parent 106f0f9506
commit d9e2c84c49
2 changed files with 35 additions and 1 deletions

View file

@ -51,6 +51,9 @@ struct wlr_output_cursor {
uint64_t wait_point;
struct wl_list link;
bool deferred;
double deferred_x, deferred_y;
struct {
struct wl_listener renderer_destroy;
} WLR_PRIVATE;
@ -459,6 +462,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_destroy(struct wlr_output_cursor *cursor);
/**