Remove wl_pointer_release function
authorChris Michael <cp.michael@samsung.com>
Wed, 11 Sep 2013 07:15:57 +0000 (08:15 +0100)
committerChris Michael <cp.michael@samsung.com>
Wed, 11 Sep 2013 09:12:30 +0000 (10:12 +0100)
NB: It's redefined in the client protocol again (for now).

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/bin/e_comp_wl.c

index 192902a..2c567f2 100644 (file)
@@ -89,6 +89,7 @@ static void _e_comp_wl_pointer_unmap(E_Wayland_Surface *ews);
 
 /* pointer interface prototypes */
 static void _e_comp_wl_pointer_cb_cursor_set(struct wl_client *client, struct wl_resource *resource, unsigned int serial, struct wl_resource *surface_resource, int x, int y);
+static void _e_comp_wl_pointer_cb_release(struct wl_client *client, struct wl_resource *resource);
 
 /* region interface prototypes */
 static void _e_comp_wl_region_cb_destroy(struct wl_client *client EINA_UNUSED, struct wl_resource *resource);
@@ -130,7 +131,8 @@ static const struct wl_seat_interface _e_input_interface =
 
 static const struct wl_pointer_interface _e_pointer_interface = 
 {
-   _e_comp_wl_pointer_cb_cursor_set
+   _e_comp_wl_pointer_cb_cursor_set,
+   _e_comp_wl_pointer_cb_release
 };
 
 static const struct wl_region_interface _e_region_interface = 
@@ -542,13 +544,6 @@ wl_pointer_init(struct wl_pointer *pointer)
 }
 
 EAPI void 
-wl_pointer_release(struct wl_pointer *pointer)
-{
-   if (pointer->focus_resource)
-     wl_list_remove(&pointer->focus_listener.link);
-}
-
-EAPI void 
 wl_pointer_set_focus(struct wl_pointer *pointer, struct wl_resource *surface, wl_fixed_t sx, wl_fixed_t sy)
 {
    struct wl_keyboard *kbd = pointer->seat->keyboard;
@@ -2393,6 +2388,12 @@ _e_comp_wl_pointer_cb_cursor_set(struct wl_client *client, struct wl_resource *r
      }
 }
 
+static void 
+_e_comp_wl_pointer_cb_release(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
+{
+   wl_resource_destroy(resource);
+}
+
 /* region interface functions */
 static void 
 _e_comp_wl_region_cb_destroy(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)