aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-09-21 11:38:04 -0400
committerTony Crisci <tony@dubstepdish.com>2017-09-21 11:38:04 -0400
commit7a3edf6e6218b79e47541a0d5ebed64e094055b4 (patch)
tree9ce5db22bbb43e2c778b3e6dcc2b418bf26dbd0b /include/wlr
parent8b74450b398dbe9afa38fdad5e5b9335a2ac1d0b (diff)
use double for cursor coordinates
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_cursor.h2
-rw-r--r--include/wlr/types/wlr_seat.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/wlr/types/wlr_cursor.h b/include/wlr/types/wlr_cursor.h
index 5fc0ec76..88390e0d 100644
--- a/include/wlr/types/wlr_cursor.h
+++ b/include/wlr/types/wlr_cursor.h
@@ -11,7 +11,7 @@ struct wlr_cursor_state;
struct wlr_cursor {
struct wlr_cursor_state *state;
- int x, y;
+ double x, y;
struct {
struct wl_signal motion;
diff --git a/include/wlr/types/wlr_seat.h b/include/wlr/types/wlr_seat.h
index 2993d693..221e4489 100644
--- a/include/wlr/types/wlr_seat.h
+++ b/include/wlr/types/wlr_seat.h
@@ -88,7 +88,7 @@ bool wlr_seat_pointer_surface_has_focus(struct wlr_seat *wlr_seat,
* surface that was entered. Coordinates for the enter event are surface-local.
*/
void wlr_seat_pointer_enter(struct wlr_seat *wlr_seat,
- struct wlr_surface *surface, int32_t sx, int32_t sy);
+ struct wlr_surface *surface, double sx, double sy);
/**
* Clear the focused surface for the pointer and leave all entered surfaces.
@@ -100,7 +100,7 @@ void wlr_seat_pointer_clear_focus(struct wlr_seat *wlr_seat);
* motion event are surface-local.
*/
void wlr_seat_pointer_send_motion(struct wlr_seat *wlr_seat, uint32_t time,
- int32_t sx, int32_t sy);
+ double sx, double sy);
/**
* Send a button event to the surface with pointer focus. Coordinates for the