diff options
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, |