mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
wayland: Drop meta_wayland_compositor_repick()
This is now unused, thus the whole call chain from this function to meta_wayland_pointer_repick() can be removed. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1654>
This commit is contained in:
parent
b938749cce
commit
ce6b91bb64
@ -1008,28 +1008,6 @@ meta_wayland_pointer_start_popup_grab (MetaWaylandPointer *pointer,
|
|||||||
return meta_wayland_popup_create (popup_surface, grab);
|
return meta_wayland_popup_create (popup_surface, grab);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
meta_wayland_pointer_repick (MetaWaylandPointer *pointer)
|
|
||||||
{
|
|
||||||
MetaBackend *backend = meta_get_backend ();
|
|
||||||
ClutterStage *stage = CLUTTER_STAGE (meta_backend_get_stage (backend));
|
|
||||||
|
|
||||||
graphene_point_t point;
|
|
||||||
ClutterActor *new_actor;
|
|
||||||
|
|
||||||
clutter_stage_get_device_coords (stage, pointer->device, NULL, &point);
|
|
||||||
new_actor =
|
|
||||||
clutter_stage_get_actor_at_pos (stage, CLUTTER_PICK_REACTIVE,
|
|
||||||
point.x, point.y);
|
|
||||||
|
|
||||||
clutter_stage_update_device (stage,
|
|
||||||
pointer->device, NULL,
|
|
||||||
point,
|
|
||||||
CLUTTER_CURRENT_TIME,
|
|
||||||
new_actor,
|
|
||||||
TRUE);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
meta_wayland_pointer_get_relative_coordinates (MetaWaylandPointer *pointer,
|
meta_wayland_pointer_get_relative_coordinates (MetaWaylandPointer *pointer,
|
||||||
MetaWaylandSurface *surface,
|
MetaWaylandSurface *surface,
|
||||||
|
@ -124,8 +124,6 @@ MetaWaylandPopup *meta_wayland_pointer_start_popup_grab (MetaWaylandPointer
|
|||||||
|
|
||||||
void meta_wayland_pointer_end_popup_grab (MetaWaylandPointer *pointer);
|
void meta_wayland_pointer_end_popup_grab (MetaWaylandPointer *pointer);
|
||||||
|
|
||||||
void meta_wayland_pointer_repick (MetaWaylandPointer *pointer);
|
|
||||||
|
|
||||||
void meta_wayland_pointer_get_relative_coordinates (MetaWaylandPointer *pointer,
|
void meta_wayland_pointer_get_relative_coordinates (MetaWaylandPointer *pointer,
|
||||||
MetaWaylandSurface *surface,
|
MetaWaylandSurface *surface,
|
||||||
wl_fixed_t *x,
|
wl_fixed_t *x,
|
||||||
|
@ -432,15 +432,6 @@ meta_wayland_seat_handle_event (MetaWaylandSeat *seat,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
meta_wayland_seat_repick (MetaWaylandSeat *seat)
|
|
||||||
{
|
|
||||||
if (!meta_wayland_seat_has_pointer (seat))
|
|
||||||
return;
|
|
||||||
|
|
||||||
meta_wayland_pointer_repick (seat->pointer);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
meta_wayland_seat_set_input_focus (MetaWaylandSeat *seat,
|
meta_wayland_seat_set_input_focus (MetaWaylandSeat *seat,
|
||||||
MetaWaylandSurface *surface)
|
MetaWaylandSurface *surface)
|
||||||
|
@ -69,8 +69,6 @@ gboolean meta_wayland_seat_handle_event (MetaWaylandSeat *seat,
|
|||||||
void meta_wayland_seat_set_input_focus (MetaWaylandSeat *seat,
|
void meta_wayland_seat_set_input_focus (MetaWaylandSeat *seat,
|
||||||
MetaWaylandSurface *surface);
|
MetaWaylandSurface *surface);
|
||||||
|
|
||||||
void meta_wayland_seat_repick (MetaWaylandSeat *seat);
|
|
||||||
|
|
||||||
gboolean meta_wayland_seat_get_grab_info (MetaWaylandSeat *seat,
|
gboolean meta_wayland_seat_get_grab_info (MetaWaylandSeat *seat,
|
||||||
MetaWaylandSurface *surface,
|
MetaWaylandSurface *surface,
|
||||||
uint32_t serial,
|
uint32_t serial,
|
||||||
|
@ -131,12 +131,6 @@ meta_wayland_compositor_set_input_focus (MetaWaylandCompositor *compositor,
|
|||||||
meta_wayland_seat_set_input_focus (compositor->seat, surface);
|
meta_wayland_seat_set_input_focus (compositor->seat, surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
meta_wayland_compositor_repick (MetaWaylandCompositor *compositor)
|
|
||||||
{
|
|
||||||
meta_wayland_seat_repick (compositor->seat);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
wl_compositor_create_surface (struct wl_client *client,
|
wl_compositor_create_surface (struct wl_client *client,
|
||||||
struct wl_resource *resource,
|
struct wl_resource *resource,
|
||||||
|
@ -55,8 +55,6 @@ void meta_wayland_compositor_update_key_state (MetaWaylandCom
|
|||||||
int key_vector_len,
|
int key_vector_len,
|
||||||
int offset);
|
int offset);
|
||||||
|
|
||||||
void meta_wayland_compositor_repick (MetaWaylandCompositor *compositor);
|
|
||||||
|
|
||||||
void meta_wayland_compositor_set_input_focus (MetaWaylandCompositor *compositor,
|
void meta_wayland_compositor_set_input_focus (MetaWaylandCompositor *compositor,
|
||||||
MetaWindow *window);
|
MetaWindow *window);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user