1
0
Fork 0

wayland: Add compositor API to get the text input object

We need to open code a bit the event handling of MetaWaylandTextInput,
in order to avoid out of order events.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3044>
This commit is contained in:
Carlos Garnacho 2023-06-07 11:04:15 +02:00 committed by Marge Bot
parent 7716b62fa2
commit 7b26aab08d
2 changed files with 9 additions and 0 deletions

View file

@ -1048,3 +1048,9 @@ meta_wayland_compositor_get_filter_manager (MetaWaylandCompositor *compositor)
return priv->filter_manager;
}
MetaWaylandTextInput *
meta_wayland_compositor_get_text_input (MetaWaylandCompositor *compositor)
{
return compositor->seat->text_input;
}

View file

@ -27,6 +27,7 @@
#include "core/meta-context-private.h"
#include "core/util-private.h"
#include "meta/types.h"
#include "wayland/meta-wayland-text-input.h"
#include "wayland/meta-wayland-types.h"
META_EXPORT_TEST
@ -88,6 +89,8 @@ void meta_wayland_compositor_schedule_surface_association (Me
int id,
MetaWindow *window);
MetaWaylandTextInput * meta_wayland_compositor_get_text_input (MetaWaylandCompositor *compositor);
#ifdef HAVE_XWAYLAND
void meta_wayland_compositor_notify_surface_id (MetaWaylandCompositor *compositor,
int id,