diff --git a/src/wayland/meta-wayland-seat.c b/src/wayland/meta-wayland-seat.c index 4f1ccae9f..924573d7b 100644 --- a/src/wayland/meta-wayland-seat.c +++ b/src/wayland/meta-wayland-seat.c @@ -563,6 +563,12 @@ meta_wayland_seat_set_input_focus (MetaWaylandSeat *seat, meta_wayland_text_input_set_focus (seat->text_input, surface); } +MetaWaylandSurface * +meta_wayland_seat_get_input_focus (MetaWaylandSeat *seat) +{ + return seat->input_focus; +} + gboolean meta_wayland_seat_get_grab_info (MetaWaylandSeat *seat, MetaWaylandSurface *surface, diff --git a/src/wayland/meta-wayland-seat.h b/src/wayland/meta-wayland-seat.h index 966f17327..83fd7de1e 100644 --- a/src/wayland/meta-wayland-seat.h +++ b/src/wayland/meta-wayland-seat.h @@ -72,6 +72,8 @@ gboolean meta_wayland_seat_handle_event (MetaWaylandSeat *seat, void meta_wayland_seat_set_input_focus (MetaWaylandSeat *seat, MetaWaylandSurface *surface); +MetaWaylandSurface * meta_wayland_seat_get_input_focus (MetaWaylandSeat *seat); + gboolean meta_wayland_seat_get_grab_info (MetaWaylandSeat *seat, MetaWaylandSurface *surface, uint32_t serial,