Alexandros Frantzis (@afrantzis) commented about dlls/winewayland.drv/waylanddrv.h:
> pthread_mutex_t mutex;
> };
>
> +struct wayland_point
> +{
> + double x;
> + double y;
> +};
With the move of accumulated x and y to `wayland_pointer` I don't think there is much benefit in a `struct wayland_point` anymore. A plain `double accum_x, accum_y;` or similar is enough.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/7806#note_101265
Alexandros Frantzis (@afrantzis) commented about dlls/winewayland.drv/wayland_pointer.c:
> process_wayland.zwp_relative_pointer_manager_v1,
> pointer->wl_pointer);
> zwp_relative_pointer_v1_add_listener(pointer->zwp_relative_pointer_v1,
> - &relative_pointer_v1_listener, NULL);
> + &relative_pointer_v1_listener, &accum);
Let's place the accumulated x and y values in wayland_pointer, since it's really a per-pointer state (currently per-process since we have a single pointer).
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/7806#note_101263