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:
akihiro yamaguchi 2026-02-03 09:25:01 +00:00
commit 5e54e2c232
3 changed files with 70 additions and 2 deletions

View file

@ -51,6 +51,10 @@ struct wlr_output_cursor {
uint64_t wait_point;
struct wl_list link;
struct timespec last_presentation;
bool deferred;
double deferred_x, deferred_y;
struct {
struct wl_listener renderer_destroy;
struct wlr_color_transform *color_transform;
@ -460,6 +464,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, struct timespec *now);
void wlr_output_cursor_destroy(struct wlr_output_cursor *cursor);
/**