ecore_wl_input: increase wl_seat version from 1 to 4. 99/69699/3
authorHosang Kim <hosang12.kim@samsung.com>
Mon, 16 May 2016 10:29:13 +0000 (19:29 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Tue, 17 May 2016 04:56:42 +0000 (13:56 +0900)
To register "repeat info" listner. Because it is supported since version
4.0.

Signed-off-by: Hosang Kim <hosang12.kim@samsung.com>
Change-Id: Ia974a734069fccd2b9af5c511f59092352e02ead

src/lib/ecore_wayland/ecore_wl_input.c

index 507bf87..2d69823 100644 (file)
@@ -56,6 +56,7 @@ static Eina_Inlist *_ecore_wl_mouse_down_info_list = NULL;
 
 /* local function prototypes */
 static void _ecore_wl_input_seat_handle_capabilities(void *data, struct wl_seat *seat, enum wl_seat_capability caps);
+static void _ecore_wl_input_seat_handle_name(void *data, struct wl_seat *seat, char *name);
 
 static void _ecore_wl_input_cb_pointer_enter(void *data, struct wl_pointer *pointer EINA_UNUSED, unsigned int serial, struct wl_surface *surface, wl_fixed_t sx, wl_fixed_t sy);
 static void _ecore_wl_input_cb_pointer_leave(void *data, struct wl_pointer *pointer EINA_UNUSED, unsigned int serial, struct wl_surface *surface);
@@ -138,7 +139,7 @@ static const struct wl_touch_listener touch_listener =
 static const struct wl_seat_listener _ecore_wl_seat_listener =
 {
    _ecore_wl_input_seat_handle_capabilities,
-   NULL // _ecore_wl_input_seat_handle_name
+   _ecore_wl_input_seat_handle_name
 };
 
 static const struct wl_data_device_listener _ecore_wl_data_listener =
@@ -455,7 +456,7 @@ _ecore_wl_input_add(Ecore_Wl_Display *ewd, unsigned int id)
      _ecore_wl_input_setup(input);
 
    input->seat =
-     wl_registry_bind(ewd->wl.registry, id, &wl_seat_interface, 1);
+     wl_registry_bind(ewd->wl.registry, id, &wl_seat_interface, 4);
    ewd->inputs = eina_inlist_append(ewd->inputs, EINA_INLIST_GET(input));
 
    wl_seat_add_listener(input->seat,
@@ -629,6 +630,13 @@ _ecore_wl_input_seat_handle_capabilities(void *data, struct wl_seat *seat, enum
 }
 
 static void
+_ecore_wl_input_seat_handle_name(void *data, struct wl_seat *seat, char *name)
+{
+   /* We don't care about the name. */
+   LOGFN(__FILE__, __LINE__, __FUNCTION__);
+}
+
+static void
 _ecore_wl_input_cb_pointer_motion(void *data, struct wl_pointer *pointer EINA_UNUSED, unsigned int timestamp, wl_fixed_t sx, wl_fixed_t sy)
 {
    Ecore_Wl_Input *input;