1
0
Fork 0

backend: Add getter for ClutterContext

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3433>
This commit is contained in:
Jonas Ådahl 2023-11-01 22:20:36 +08:00 committed by Sebastian Wick
parent af71749e75
commit c4dc0bd755
2 changed files with 11 additions and 0 deletions

View file

@ -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);

View file

@ -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)
{