use double for cursor coordinates

This commit is contained in:
Tony Crisci 2017-09-21 11:38:04 -04:00
parent 8b74450b39
commit 7a3edf6e62
4 changed files with 9 additions and 9 deletions

View file

@ -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,