mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-05 13:29:47 -05:00
use double for cursor coordinates
This commit is contained in:
parent
8b74450b39
commit
7a3edf6e62
4 changed files with 9 additions and 9 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue