aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/layer-shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/layer-shell.c b/examples/layer-shell.c
index 3f955be4..89fa9ea9 100644
--- a/examples/layer-shell.c
+++ b/examples/layer-shell.c
@@ -162,8 +162,8 @@ static void wl_pointer_leave(void *data, struct wl_pointer *wl_pointer,
static void wl_pointer_motion(void *data, struct wl_pointer *wl_pointer,
uint32_t time, wl_fixed_t surface_x, wl_fixed_t surface_y) {
- cur_x = (int)wl_fixed_to_double(surface_x);
- cur_y = (int)wl_fixed_to_double(surface_y);
+ cur_x = wl_fixed_to_int(surface_x);
+ cur_y = wl_fixed_to_int(surface_y);
}
static void wl_pointer_button(void *data, struct wl_pointer *wl_pointer,