wayland: Add getter for the pointer focus client

Similarly to MetaWaylandKeyboard, there's some subsystems
that want access to this, e.g. touchpad gestures.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3627>
This commit is contained in:
Carlos Garnacho 2024-02-27 13:09:55 +01:00 committed by Marge Bot
parent 03b504fc38
commit bf4d46097b
2 changed files with 8 additions and 0 deletions

View File

@ -1460,3 +1460,9 @@ meta_wayland_pointer_get_implicit_grab_surface (MetaWaylandPointer *pointer)
return NULL;
}
MetaWaylandPointerClient *
meta_wayland_pointer_get_focus_client (MetaWaylandPointer *pointer)
{
return pointer->focus_client;
}

View File

@ -129,3 +129,5 @@ void meta_wayland_pointer_focus_surface (MetaWaylandPointer *pointer,
MetaWaylandSurface *surface);
MetaWaylandSurface * meta_wayland_pointer_get_implicit_grab_surface (MetaWaylandPointer *pointer);
MetaWaylandPointerClient * meta_wayland_pointer_get_focus_client (MetaWaylandPointer *pointer);