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:
parent
4f60fd9394
commit
b87dcbdf34
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user