Fix calculation of microsecond time in relative pointer events

* src/relative_pointer.c (XLRelativePointerSendRelativeMotion):
Fix computation of time_lo.
This commit is contained in:
hujianwei 2022-10-20 12:44:59 +00:00
parent 5cec85b987
commit a866c4068a

View file

@ -123,7 +123,7 @@ XLRelativePointerSendRelativeMotion (struct wl_resource *resource,
uint32_t time_hi, time_lo;
time_hi = microsecond_time >> 32;
time_lo = microsecond_time >> 32;
time_lo = microsecond_time & 0xffffffff;
zwp_relative_pointer_v1_send_relative_motion (resource, time_hi, time_lo,
wl_fixed_from_double (dx),