xwayland: Add EI portal support to the Xwayland manager

This adds a new API to instruct the MetaXWaylandManager to enable input
emulation XDG portal support when Xwayland is started.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3303>
This commit is contained in:
Olivier Fourdan 2023-09-29 16:26:41 +02:00 committed by Marge Bot
parent 4d587a8bcd
commit e8fa92cf0e
3 changed files with 12 additions and 0 deletions

View File

@ -75,6 +75,8 @@ struct _MetaXWaylandManager
gboolean has_xrandr; gboolean has_xrandr;
int rr_event_base; int rr_event_base;
int rr_error_base; int rr_error_base;
gboolean should_enable_ei_portal;
}; };
struct _MetaWaylandCompositor struct _MetaWaylandCompositor

View File

@ -57,3 +57,6 @@ gboolean meta_xwayland_start_xserver_finish (MetaXWaylandManager *manager,
gboolean meta_xwayland_manager_handle_xevent (MetaXWaylandManager *manager, gboolean meta_xwayland_manager_handle_xevent (MetaXWaylandManager *manager,
XEvent *xevent); XEvent *xevent);
void meta_xwayland_set_should_enable_ei_portal (MetaXWaylandManager *manager,
gboolean should_enable_ei_portal);

View File

@ -1295,3 +1295,10 @@ meta_xwayland_signal (MetaXWaylandManager *manager,
g_subprocess_send_signal (manager->proc, signum); g_subprocess_send_signal (manager->proc, signum);
return TRUE; return TRUE;
} }
void
meta_xwayland_set_should_enable_ei_portal (MetaXWaylandManager *manager,
gboolean should_enable_ei_portal)
{
manager->should_enable_ei_portal = should_enable_ei_portal;
}