From 237451d167cf7564be986308e90818dd51292d25 Mon Sep 17 00:00:00 2001 From: David Fort Date: Mon, 17 Oct 2016 11:27:10 +0200 Subject: [PATCH] Implement callbacks for version 5 of wl_pointer This should prevent crash with compositor that implement this version. --- uwac/libuwac/uwac-input.c | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/uwac/libuwac/uwac-input.c b/uwac/libuwac/uwac-input.c index 76e2f5ec4..507f4f8f6 100644 --- a/uwac/libuwac/uwac-input.c +++ b/uwac/libuwac/uwac-input.c @@ -602,10 +602,6 @@ static void pointer_handle_leave(void *data, struct wl_pointer *pointer, uint32_ event->seat = input; event->window = window; - -#if 0 - input_remove_pointer_focus(input); -#endif } static void pointer_handle_motion(void *data, struct wl_pointer *pointer, uint32_t time, @@ -677,12 +673,30 @@ static void pointer_handle_axis(void *data, struct wl_pointer *pointer, uint32_t event->value = value; } +static void pointer_frame(void *data, struct wl_pointer *wl_pointer) +{ + /*UwacSeat *seat = data;*/ +} + +static void pointer_axis_source(void *data, struct wl_pointer *wl_pointer, uint32_t axis_source) +{ + /*UwacSeat *seat = data;*/ +} + +void pointer_axis_stop(void *data, struct wl_pointer *wl_pointer, uint32_t time, uint32_t axis) +{ + /*UwacSeat *seat = data;*/ +} + static const struct wl_pointer_listener pointer_listener = { pointer_handle_enter, pointer_handle_leave, pointer_handle_motion, pointer_handle_button, pointer_handle_axis, + pointer_frame, + pointer_axis_source, + pointer_axis_stop, };