xserver: Branch 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Aug 2 01:28:13 UTC 2022
hw/xwayland/xwayland-input.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 354e39eefa010cad2c05ccbf80729bb942b9536a
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Tue Jul 26 16:04:41 2022 +1000
xwayland: correct the type for the discrete scroll events
Not that it actually matters since the typedef is int32_t anyway, but
this theoretically avoids an erroneous call to wl_fixed_to_double() on
that value.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
diff --git a/hw/xwayland/xwayland-input.c b/hw/xwayland/xwayland-input.c
index 784972aed..16b58a2d5 100644
--- a/hw/xwayland/xwayland-input.c
+++ b/hw/xwayland/xwayland-input.c
@@ -670,8 +670,8 @@ dispatch_scroll_motion(struct xwl_seat *xwl_seat)
const int divisor = 10;
wl_fixed_t dy = xwl_seat->pending_pointer_event.scroll_dy;
wl_fixed_t dx = xwl_seat->pending_pointer_event.scroll_dx;
- wl_fixed_t discrete_dy = xwl_seat->pending_pointer_event.scroll_discrete_dy;
- wl_fixed_t discrete_dx = xwl_seat->pending_pointer_event.scroll_discrete_dx;
+ int32_t discrete_dy = xwl_seat->pending_pointer_event.scroll_discrete_dy;
+ int32_t discrete_dx = xwl_seat->pending_pointer_event.scroll_discrete_dx;
valuator_mask_zero(&mask);
if (xwl_seat->pending_pointer_event.has_vertical_scroll)
More information about the xorg-commit
mailing list