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@who-t.net>
This commit is contained in:
parent
2efa6d6595
commit
354e39eefa
|
@ -670,8 +670,8 @@ dispatch_scroll_motion(struct xwl_seat *xwl_seat)
|
||||||
const int divisor = 10;
|
const int divisor = 10;
|
||||||
wl_fixed_t dy = xwl_seat->pending_pointer_event.scroll_dy;
|
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 dx = xwl_seat->pending_pointer_event.scroll_dx;
|
||||||
wl_fixed_t discrete_dy = xwl_seat->pending_pointer_event.scroll_discrete_dy;
|
int32_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_dx = xwl_seat->pending_pointer_event.scroll_discrete_dx;
|
||||||
|
|
||||||
valuator_mask_zero(&mask);
|
valuator_mask_zero(&mask);
|
||||||
if (xwl_seat->pending_pointer_event.has_vertical_scroll)
|
if (xwl_seat->pending_pointer_event.has_vertical_scroll)
|
||||||
|
|
Loading…
Reference in New Issue