mirror of
https://github.com/X11Libre/xf86-input-libinput.git
synced 2026-04-14 10:54:17 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user