Fixes scrolling crash in wlfreerdp

An "axis discrete" handler is required since protocol version 5:
https://code.woboq.org/qt5/include/wayland-client-protocol.h.html
Crash output: "listener function for opcode 8 of wl_pointer is NULL"
This commit is contained in:
Michael Meyer 2017-08-16 17:54:45 +00:00
parent 1e54fdb5c2
commit c01442da2d

View File

@ -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,
};