Fix a compiler warning

xf86libinput.c:2457:89: warning: passing argument 1 of
‘libinput_event_pointer_get_axis_source’ from incompatible
pointer type [-Wincompatible-pointer-types]

No function changes due to the binary layout of libinput events but
let's not rely on that.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2022-01-24 11:38:01 +10:00
parent a3d38b0f40
commit c1f07edafa

View File

@@ -2454,7 +2454,9 @@ xf86libinput_handle_event(struct libinput_event *event)
xf86libinput_handle_axis(pInfo,
event,
libinput_event_pointer_get_axis_source(event));
libinput_event_pointer_get_axis_source(
libinput_event_get_pointer_event(event)
));
break;
#if HAVE_LIBINPUT_AXIS_VALUE_V120
case LIBINPUT_EVENT_POINTER_SCROLL_WHEEL: