Transform cursor hotspot, fix wayland cursor hotspot

This commit is contained in:
emersion 2017-10-29 17:43:26 +01:00
parent 6656e25fd4
commit 95566c6bdf
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
6 changed files with 150 additions and 110 deletions

View file

@ -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,