1
0
Fork 0

wayland: Drop meta_wayland_keyboard_get_focus_client()

All its users did not necessarily depend on a MetaWaylandKeyboard
existing, so were ported to using the MetaWaylandSeat global input
focus. This may now be dropped.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3707>
This commit is contained in:
Carlos Garnacho 2024-04-15 22:40:10 +02:00 committed by Marge Bot
parent 9bdb00c459
commit 1fdae4f856
2 changed files with 0 additions and 11 deletions

View file

@ -830,15 +830,6 @@ meta_wayland_keyboard_set_focus (MetaWaylandKeyboard *keyboard,
}
}
struct wl_client *
meta_wayland_keyboard_get_focus_client (MetaWaylandKeyboard *keyboard)
{
if (keyboard->focus_surface)
return wl_resource_get_client (keyboard->focus_surface->resource);
else
return NULL;
}
static void
keyboard_release (struct wl_client *client,
struct wl_resource *resource)

View file

@ -71,8 +71,6 @@ void meta_wayland_keyboard_update_key_state (MetaWaylandKeyboard *compositor,
void meta_wayland_keyboard_set_focus (MetaWaylandKeyboard *keyboard,
MetaWaylandSurface *surface);
struct wl_client * meta_wayland_keyboard_get_focus_client (MetaWaylandKeyboard *keyboard);
void meta_wayland_keyboard_create_new_resource (MetaWaylandKeyboard *keyboard,
struct wl_client *client,
struct wl_resource *seat_resource,