Fixes scrolling crash in wlfreerdp
An "axis discrete" handler is required since protocol version 5:
Crash output: "listener function for opcode 8 of wl_pointer is NULL"
@@ -683,7 +683,12 @@ static void pointer_axis_source(void *data, struct wl_pointer *wl_pointer, uint3
/*UwacSeat *seat = data;*/
}
-void pointer_axis_stop(void *data, struct wl_pointer *wl_pointer, uint32_t time, uint32_t axis)
+static void pointer_axis_stop(void *data, struct wl_pointer *wl_pointer, uint32_t time, uint32_t axis)
+{
+ /*UwacSeat *seat = data;*/
+}
+
+static void pointer_axis_discrete(void *data, struct wl_pointer *wl_pointer, uint32_t axis, int32_t discrete)
{
/*UwacSeat *seat = data;*/
}
@@ -697,6 +702,7 @@ static const struct wl_pointer_listener pointer_listener = {
pointer_frame,
pointer_axis_source,
pointer_axis_stop,
+ pointer_axis_discrete,
};
