diff options
-rw-r--r-- | include/client/window.h | 6 | ||||
-rw-r--r-- | wayland/window.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/client/window.h b/include/client/window.h index 7be4fff3..55a12225 100644 --- a/include/client/window.h +++ b/include/client/window.h | |||
@@ -28,10 +28,10 @@ struct cursor { | |||
28 | }; | 28 | }; |
29 | 29 | ||
30 | struct pointer_input { | 30 | struct pointer_input { |
31 | wl_fixed_t last_x; | 31 | int last_x; |
32 | wl_fixed_t last_y; | 32 | int last_y; |
33 | 33 | ||
34 | void (*notify)(struct window *window, wl_fixed_t x, wl_fixed_t y, uint32_t button); | 34 | void (*notify)(struct window *window, int x, int y, uint32_t button); |
35 | }; | 35 | }; |
36 | 36 | ||
37 | struct window { | 37 | struct window { |
diff --git a/wayland/window.c b/wayland/window.c index e055e244..9b6e5b00 100644 --- a/wayland/window.c +++ b/wayland/window.c | |||
@@ -32,8 +32,8 @@ static void pointer_handle_motion(void *data, struct wl_pointer *pointer, | |||
32 | uint32_t time, wl_fixed_t sx_w, wl_fixed_t sy_w) { | 32 | uint32_t time, wl_fixed_t sx_w, wl_fixed_t sy_w) { |
33 | struct window *window = data; | 33 | struct window *window = data; |
34 | 34 | ||
35 | window->pointer_input.last_x = sx_w; | 35 | window->pointer_input.last_x = wl_fixed_to_int(sx_w); |
36 | window->pointer_input.last_y = sy_w; | 36 | window->pointer_input.last_y = wl_fixed_to_int(sy_w); |
37 | } | 37 | } |
38 | 38 | ||
39 | static void pointer_handle_button(void *data, struct wl_pointer *pointer, uint32_t serial, | 39 | static void pointer_handle_button(void *data, struct wl_pointer *pointer, uint32_t serial, |