diff options
author | Derek Foreman <derek.foreman@collabora.com> | 2022-02-03 16:40:10 -0600 |
---|---|---|
committer | Pekka Paalanen <pq@iki.fi> | 2023-02-17 13:51:23 +0000 |
commit | 583fbcda3bba5a31b83d95ed8d64bed326ea1806 (patch) | |
tree | 06b6ae41a0378650eb4f90297434d2efc672cec2 /include | |
parent | 8f33e86cda37253e2bc0185ff4a376fb69ff267d (diff) | |
download | weston-583fbcda3bba5a31b83d95ed8d64bed326ea1806.tar.gz |
libweston: Use weston_coord in struct weston_pointer
Convert the bare x,y coordinates into struct weston_coord and update all
users.
We keep the surface position in wl_fixed_t for now so it still exactly
matches the position most recently sent to clients.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libweston/libweston.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libweston/libweston.h b/include/libweston/libweston.h index 6965a661..8bf6d369 100644 --- a/include/libweston/libweston.h +++ b/include/libweston/libweston.h @@ -717,16 +717,16 @@ struct weston_pointer { struct weston_view *sprite; struct wl_listener sprite_destroy_listener; - int32_t hotspot_x, hotspot_y; + struct weston_coord_surface hotspot; struct weston_pointer_grab *grab; struct weston_pointer_grab default_grab; - wl_fixed_t grab_x, grab_y; + struct weston_coord_global grab_pos; uint32_t grab_button; uint32_t grab_serial; struct timespec grab_time; - wl_fixed_t x, y; + struct weston_coord_global pos; wl_fixed_t sx, sy; uint32_t button_count; |