diff --git a/src/wayland/meta-wayland-pointer.c b/src/wayland/meta-wayland-pointer.c index afa2c90b6..59c80fa48 100644 --- a/src/wayland/meta-wayland-pointer.c +++ b/src/wayland/meta-wayland-pointer.c @@ -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; +} diff --git a/src/wayland/meta-wayland-pointer.h b/src/wayland/meta-wayland-pointer.h index 7c4e38110..066108960 100644 --- a/src/wayland/meta-wayland-pointer.h +++ b/src/wayland/meta-wayland-pointer.h @@ -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);