diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-30 19:33:57 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-03-30 20:34:00 -0400 |
commit | 746e3759b7a350a5e9124f365cac0279810781d1 (patch) | |
tree | c2ba01faee4ab57b10d58db19e590360d5bc4a98 /examples | |
parent | 168f65fb7a336c7f7067bfd56413b2d19556c8bf (diff) |
Address review feedback
Diffstat (limited to 'examples')
-rw-r--r-- | examples/layer-shell.c | 4 |
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, |