Set wlr_output_cursor.max_latency from wlr_cursor

I currently cannot find a better place to put this.
Ideally this should only be set when output_cursor is created, or
set_max_latency is called. But I had problems getting it working.
This commit is contained in:
Daniel Hill 2023-08-29 18:28:21 +12:00
parent 47f8cefad8
commit ed2cd86cee

View file

@ -288,6 +288,7 @@ static void cursor_warp_unchecked(struct wlr_cursor *cur,
struct wlr_cursor_output_cursor *output_cursor;
wl_list_for_each(output_cursor, &cur->state->output_cursors, link) {
output_cursor->output_cursor->max_latency = cur->max_latency;
output_cursor_move(output_cursor);
}
}