diff --git a/src/wayland/meta-wayland-pointer.c b/src/wayland/meta-wayland-pointer.c index c4da3681d..67007ffb1 100644 --- a/src/wayland/meta-wayland-pointer.c +++ b/src/wayland/meta-wayland-pointer.c @@ -1536,3 +1536,9 @@ meta_wayland_pointer_is_grabbed (MetaWaylandPointer *pointer) { return pointer->grab != &pointer->default_grab; } + +MetaWaylandSurface * +meta_wayland_pointer_get_current_surface (MetaWaylandPointer *pointer) +{ + return pointer->current; +} diff --git a/src/wayland/meta-wayland-pointer.h b/src/wayland/meta-wayland-pointer.h index 60870a5d0..a28108d5f 100644 --- a/src/wayland/meta-wayland-pointer.h +++ b/src/wayland/meta-wayland-pointer.h @@ -159,3 +159,5 @@ void meta_wayland_surface_cursor_update (MetaWaylandSurface *cursor_surface); void meta_wayland_pointer_update_cursor_surface (MetaWaylandPointer *pointer); gboolean meta_wayland_pointer_is_grabbed (MetaWaylandPointer *pointer); + +MetaWaylandSurface * meta_wayland_pointer_get_current_surface (MetaWaylandPointer *pointer);