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:
parent
4d587a8bcd
commit
e8fa92cf0e
@ -75,6 +75,8 @@ struct _MetaXWaylandManager
|
||||
gboolean has_xrandr;
|
||||
int rr_event_base;
|
||||
int rr_error_base;
|
||||
|
||||
gboolean should_enable_ei_portal;
|
||||
};
|
||||
|
||||
struct _MetaWaylandCompositor
|
||||
|
@ -57,3 +57,6 @@ gboolean meta_xwayland_start_xserver_finish (MetaXWaylandManager *manager,
|
||||
|
||||
gboolean meta_xwayland_manager_handle_xevent (MetaXWaylandManager *manager,
|
||||
XEvent *xevent);
|
||||
|
||||
void meta_xwayland_set_should_enable_ei_portal (MetaXWaylandManager *manager,
|
||||
gboolean should_enable_ei_portal);
|
||||
|
@ -1295,3 +1295,10 @@ meta_xwayland_signal (MetaXWaylandManager *manager,
|
||||
g_subprocess_send_signal (manager->proc, signum);
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user