summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2022-01-24 11:38:01 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2022-01-24 11:38:53 +1000
commitc1f07edafafe63f8f22fd4e2aff6761e46872ed4 (patch)
treee100cd44a9b880f0c5e3c32b784a2061f2bd6cc0
parenta3d38b0f40c771c4064cb0047ccf46f4d299d557 (diff)
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>
-rw-r--r--src/xf86libinput.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xf86libinput.c b/src/xf86libinput.c
index d7b72e0..b9cd086 100644
--- a/src/xf86libinput.c
+++ b/src/xf86libinput.c
@@ -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: