mirror of
https://github.com/brl/mutter.git
synced 2025-01-10 11:42:49 +00:00
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:
parent
03b504fc38
commit
bf4d46097b
@ -1460,3 +1460,9 @@ meta_wayland_pointer_get_implicit_grab_surface (MetaWaylandPointer *pointer)
|
|||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MetaWaylandPointerClient *
|
||||||
|
meta_wayland_pointer_get_focus_client (MetaWaylandPointer *pointer)
|
||||||
|
{
|
||||||
|
return pointer->focus_client;
|
||||||
|
}
|
||||||
|
@ -129,3 +129,5 @@ void meta_wayland_pointer_focus_surface (MetaWaylandPointer *pointer,
|
|||||||
MetaWaylandSurface *surface);
|
MetaWaylandSurface *surface);
|
||||||
|
|
||||||
MetaWaylandSurface * meta_wayland_pointer_get_implicit_grab_surface (MetaWaylandPointer *pointer);
|
MetaWaylandSurface * meta_wayland_pointer_get_implicit_grab_surface (MetaWaylandPointer *pointer);
|
||||||
|
|
||||||
|
MetaWaylandPointerClient * meta_wayland_pointer_get_focus_client (MetaWaylandPointer *pointer);
|
||||||
|
Loading…
Reference in New Issue
Block a user