wayland: Remove meta_wayland_pointer_set_current

It's unused. The current field is filled in by meta_wayland_seat_repick.
This commit is contained in:
Jasper St. Pierre 2013-10-15 23:53:59 -04:00
parent 15e83f0c2f
commit 21d511e50f
2 changed files with 0 additions and 31 deletions

View File

@ -385,32 +385,6 @@ meta_wayland_pointer_end_grab (MetaWaylandPointer *pointer)
interface->focus (pointer->grab, pointer->current, NULL); interface->focus (pointer->grab, pointer->current, NULL);
} }
static void
current_surface_destroy (struct wl_listener *listener, void *data)
{
MetaWaylandPointer *pointer =
wl_container_of (listener, pointer, current_listener);
pointer->current = NULL;
}
void
meta_wayland_pointer_set_current (MetaWaylandPointer *pointer,
MetaWaylandSurface *surface)
{
if (pointer->current)
wl_list_remove (&pointer->current_listener.link);
pointer->current = surface;
if (!surface)
return;
wl_resource_add_destroy_listener (surface->resource,
&pointer->current_listener);
pointer->current_listener.notify = current_surface_destroy;
}
static void static void
modal_focus (MetaWaylandPointerGrab *grab, modal_focus (MetaWaylandPointerGrab *grab,
MetaWaylandSurface *surface, MetaWaylandSurface *surface,

View File

@ -62,7 +62,6 @@ struct _MetaWaylandPointer
wl_fixed_t x, y; /* TODO: remove, use ClutterInputDevice instead */ wl_fixed_t x, y; /* TODO: remove, use ClutterInputDevice instead */
MetaWaylandSurface *current; MetaWaylandSurface *current;
struct wl_listener current_listener;
wl_fixed_t current_x, current_y; wl_fixed_t current_x, current_y;
guint32 button_count; guint32 button_count;
@ -97,10 +96,6 @@ gboolean
meta_wayland_pointer_start_popup_grab (MetaWaylandPointer *pointer, meta_wayland_pointer_start_popup_grab (MetaWaylandPointer *pointer,
MetaWaylandSurface *popup); MetaWaylandSurface *popup);
void
meta_wayland_pointer_set_current (MetaWaylandPointer *pointer,
MetaWaylandSurface *surface);
void void
meta_wayland_pointer_get_relative_coordinates (MetaWaylandPointer *pointer, meta_wayland_pointer_get_relative_coordinates (MetaWaylandPointer *pointer,
MetaWaylandSurface *surface, MetaWaylandSurface *surface,