Implement callbacks for version 5 of wl_pointer
authorDavid Fort <contact@hardening-consulting.com>
Mon, 17 Oct 2016 09:27:10 +0000 (11:27 +0200)
committerDavid Fort <contact@hardening-consulting.com>
Mon, 17 Oct 2016 14:43:23 +0000 (16:43 +0200)
This should prevent crash with compositor that implement this version.

uwac/libuwac/uwac-input.c

index 76e2f5e..507f4f8 100644 (file)
@@ -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,
 };