diff options
author | David Eklov <david.eklov@gmail.com> | 2016-07-11 00:03:15 -0500 |
---|---|---|
committer | David Eklov <david.eklov@gmail.com> | 2016-07-14 17:18:01 -0500 |
commit | 679c7b397c4e9dfdc69d6c67c523494dfe987f60 (patch) | |
tree | 54d2d114b4a25a10f4d11a64303cd9e949bed032 /wayland | |
parent | Extract workspace size computation from render_workspace_button() (diff) | |
download | sway-679c7b397c4e9dfdc69d6c67c523494dfe987f60.tar.gz sway-679c7b397c4e9dfdc69d6c67c523494dfe987f60.tar.zst sway-679c7b397c4e9dfdc69d6c67c523494dfe987f60.zip |
Use int instead of wl_fixed_t for mouse coordinates
Diffstat (limited to 'wayland')
-rw-r--r-- | wayland/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, |