wayland: Add MetaWaylandSeat input focus getter
This will be useful for MetaWaylandCompositor to get the current input focus for keyboard and other related devices. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3627>
This commit is contained in:
parent
9e77d45704
commit
81df305645
2 changed files with 8 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue