context: Make the context owner of the backend

There is still the `_backend` singleton still, as there are still the
`meta_get_backend()` that needs to work for now.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
This commit is contained in:
Jonas Ådahl
2021-03-03 14:31:56 +01:00
parent 1972d4ec90
commit b1c643eeaa
7 changed files with 126 additions and 40 deletions

View File

@ -49,6 +49,9 @@ META_EXPORT
void meta_backend_lock_layout_group (MetaBackend *backend,
guint idx);
META_EXPORT
MetaContext * meta_backend_get_context (MetaBackend *backend);
META_EXPORT
ClutterActor *meta_backend_get_stage (MetaBackend *backend);

View File

@ -81,4 +81,7 @@ void meta_context_terminate_with_error (MetaContext *context,
META_EXPORT
MetaCompositorType meta_context_get_compositor_type (MetaContext *context);
META_EXPORT
MetaBackend * meta_context_get_backend (MetaContext *context);
#endif /* META_CONTEXT_H */