mirror of
https://github.com/X11Libre/xf86-input-libinput.git
synced 2026-03-24 09:34:04 +00:00
Only post rel motion events if we have a non-zero delta
We trunc the li_fixed_t to int, so we don't always have a delta to post Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -350,7 +350,8 @@ xf86libinput_handle_motion(InputInfoPtr pInfo, struct libinput_event_pointer *ev
|
||||
x = li_fixed_to_int(x);
|
||||
y = li_fixed_to_int(y);
|
||||
|
||||
xf86PostMotionEvent(dev, Relative, 0, 2, x, y);
|
||||
if (x || y)
|
||||
xf86PostMotionEvent(dev, Relative, 0, 2, x, y);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user