[PATCH 3/6 xserver] xwayland: use stub for wl_input_device_listener

Tiago Vignatti tiago.vignatti at intel.com
Tue Apr 3 06:58:01 PDT 2012


otherwise it segfaults

Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
---
 hw/xfree86/xwayland/xwayland-input.c |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/hw/xfree86/xwayland/xwayland-input.c b/hw/xfree86/xwayland/xwayland-input.c
index 6ccc097..769e83f 100644
--- a/hw/xfree86/xwayland/xwayland-input.c
+++ b/hw/xfree86/xwayland/xwayland-input.c
@@ -391,12 +391,36 @@ input_device_handle_keyboard_focus(void *data,
     }
 }
 
+static void
+input_device_handle_axis(void *data, struct wl_input_device *input_device,
+                        uint32_t time, uint32_t axis, int32_t value)
+{
+}
+
+static void
+input_device_handle_pointer_leave(void *data,
+                                  struct wl_input_device *input_device,
+                                  uint32_t time, struct wl_surface *surface)
+{
+}
+
+static void
+input_device_handle_keyboard_leave(void *data,
+                                   struct wl_input_device *input_device,
+                                   uint32_t time,
+                                   struct wl_surface *surface)
+{
+}
+
 static const struct wl_input_device_listener input_device_listener = {
     input_device_handle_motion,
     input_device_handle_button,
+    input_device_handle_axis,
     input_device_handle_key,
     input_device_handle_pointer_focus,
+    input_device_handle_pointer_leave,
     input_device_handle_keyboard_focus,
+    input_device_handle_keyboard_leave,
 };
 
 static void
-- 
1.7.5.4



More information about the wayland-devel mailing list