diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-09-21 11:38:04 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-09-21 11:38:04 -0400 |
commit | 7a3edf6e6218b79e47541a0d5ebed64e094055b4 (patch) | |
tree | 9ce5db22bbb43e2c778b3e6dcc2b418bf26dbd0b /examples/compositor.c | |
parent | 8b74450b398dbe9afa38fdad5e5b9335a2ac1d0b (diff) |
use double for cursor coordinates
Diffstat (limited to 'examples/compositor.c')
-rw-r--r-- | examples/compositor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/compositor.c b/examples/compositor.c index 7595c729..24013c52 100644 --- a/examples/compositor.c +++ b/examples/compositor.c @@ -366,8 +366,8 @@ static void handle_cursor_motion(struct wl_listener *listener, void *data) { if (surface) { struct example_xdg_surface_v6 *esurface = surface->data; - int32_t sx = sample->cursor->x - esurface->position.lx; - int32_t sy = sample->cursor->y - esurface->position.ly; + double sx = sample->cursor->x - esurface->position.lx; + double sy = sample->cursor->y - esurface->position.ly; // TODO z-order wlr_seat_pointer_enter(sample->wl_seat, surface->surface, |