From 95566c6bdfb7048b2460b701747f4c9d3fcd4ebd Mon Sep 17 00:00:00 2001 From: emersion Date: Sun, 29 Oct 2017 17:43:26 +0100 Subject: Transform cursor hotspot, fix wayland cursor hotspot --- backend/wayland/wl_seat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/wayland/wl_seat.c') diff --git a/backend/wayland/wl_seat.c b/backend/wayland/wl_seat.c index 903ca3ee..0d8e5b1f 100644 --- a/backend/wayland/wl_seat.c +++ b/backend/wayland/wl_seat.c @@ -23,8 +23,8 @@ static void pointer_handle_enter(void *data, struct wl_pointer *wl_pointer, wlr_wl_output_for_surface(wlr_wl_dev->backend, surface); assert(output); wlr_wl_pointer->current_output = output; - wlr_wl_pointer->current_output->enter_serial = serial; - wlr_wl_output_update_cursor(wlr_wl_pointer->current_output, serial, 0, 0); + output->enter_serial = serial; + wlr_wl_output_update_cursor(output); } static void pointer_handle_leave(void *data, struct wl_pointer *wl_pointer, -- cgit v1.2.3