backend/wayland: manage cursor for current pointer

This commit is contained in:
Mykola Orliuk 2020-10-03 15:06:05 +02:00 committed by Simon Ser
parent b98522b38f
commit df417b7e95
2 changed files with 4 additions and 2 deletions

View file

@ -48,6 +48,7 @@ static void pointer_handle_enter(void *data, struct wl_pointer *wl_pointer,
struct wlr_wl_output *output = wl_surface_get_user_data(surface);
assert(output);
struct wlr_wl_pointer *pointer = output_get_pointer(output);
assert(!backend->current_pointer || backend->current_pointer == pointer);
output->enter_serial = serial;
backend->current_pointer = pointer;