input: Fix pointer hotspot coordinate space

Oops, this was always wrong but nothing actually checked it. Checks are
coming, so it needs to be fixed.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2023-07-18 14:18:12 -05:00 committed by Marius Vlad
parent 4f60fd9394
commit b87dcbdf34

View File

@ -3606,7 +3606,7 @@ pointer_set_cursor(struct wl_client *client, struct wl_resource *resource,
pointer->sprite = weston_view_create(surface);
}
pointer->hotspot.c = weston_coord(x, y);
pointer->hotspot = weston_coord_surface(x, y, surface);
if (surface->width != 0) {
struct weston_coord_surface zero;