Remove wl_pointer_release function

NB: It's redefined in the client protocol again (for now).

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-09-11 08:15:57 +01:00
parent bdd0bc624d
commit 01717bde88
1 changed files with 9 additions and 8 deletions

View 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 =
@ -541,13 +543,6 @@ wl_pointer_init(struct wl_pointer *pointer)
pointer->y = wl_fixed_from_int(100);
}
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)
{
@ -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)