mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +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;
|
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/meta-context-private.h"
|
||||||
#include "core/util-private.h"
|
#include "core/util-private.h"
|
||||||
#include "meta/types.h"
|
#include "meta/types.h"
|
||||||
|
#include "wayland/meta-wayland-text-input.h"
|
||||||
#include "wayland/meta-wayland-types.h"
|
#include "wayland/meta-wayland-types.h"
|
||||||
|
|
||||||
META_EXPORT_TEST
|
META_EXPORT_TEST
|
||||||
@ -88,6 +89,8 @@ void meta_wayland_compositor_schedule_surface_association (Me
|
|||||||
int id,
|
int id,
|
||||||
MetaWindow *window);
|
MetaWindow *window);
|
||||||
|
|
||||||
|
MetaWaylandTextInput * meta_wayland_compositor_get_text_input (MetaWaylandCompositor *compositor);
|
||||||
|
|
||||||
#ifdef HAVE_XWAYLAND
|
#ifdef HAVE_XWAYLAND
|
||||||
void meta_wayland_compositor_notify_surface_id (MetaWaylandCompositor *compositor,
|
void meta_wayland_compositor_notify_surface_id (MetaWaylandCompositor *compositor,
|
||||||
int id,
|
int id,
|
||||||
|
Loading…
Reference in New Issue
Block a user