mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
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:
parent
7716b62fa2
commit
7b26aab08d
@ -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;
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user