backend: Add getter for ClutterContext
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3433>
This commit is contained in:
parent
af71749e75
commit
c4dc0bd755
2 changed files with 11 additions and 0 deletions
|
@ -124,6 +124,9 @@ void meta_backend_destroy (MetaBackend *backend);
|
|||
META_EXPORT_TEST
|
||||
ClutterBackend * meta_backend_get_clutter_backend (MetaBackend *backend);
|
||||
|
||||
META_EXPORT_TEST
|
||||
ClutterContext * meta_backend_get_clutter_context (MetaBackend *backend);
|
||||
|
||||
META_EXPORT_TEST
|
||||
ClutterSeat * meta_backend_get_default_seat (MetaBackend *backend);
|
||||
|
||||
|
|
|
@ -1650,6 +1650,14 @@ meta_backend_set_client_pointer_constraint (MetaBackend *backend,
|
|||
g_set_object (&priv->client_pointer_constraint, constraint);
|
||||
}
|
||||
|
||||
ClutterContext *
|
||||
meta_backend_get_clutter_context (MetaBackend *backend)
|
||||
{
|
||||
MetaBackendPrivate *priv = meta_backend_get_instance_private (backend);
|
||||
|
||||
return priv->clutter_context;
|
||||
}
|
||||
|
||||
ClutterBackend *
|
||||
meta_backend_get_clutter_backend (MetaBackend *backend)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue