diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2020-04-27 13:30:26 +0200 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2020-05-26 16:35:00 +0200 |
commit | 1571f8078a23b7cbd794e7f9479cf3512bf01122 (patch) | |
tree | 24eccbc2100c60d64a8bc8f20cddae2e5ac7465e /src/backends/meta-backend-private.h | |
parent | 510cbef15a5638d38db86be2788376e9413d070e (diff) | |
download | mutter-1571f8078a23b7cbd794e7f9479cf3512bf01122.tar.gz |
Reshuffle Wayland initailization
Move Wayland support (i.e. the MetaWaylandCompositor object) made to be
part of the backend. This is due to the fact that it is needed by the
backend initialization, e.g. the Wayland EGLDisplay server support.
The backend is changed to be more involved in Wayland and clutter
initialization, so that the parts needed for clutter initialization
happens before clutter itself initialization happens, and the rest
happens after. This simplifies the setup a bit, as clutter and Wayland
init now happens as part of the backend initialization.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1218
Diffstat (limited to 'src/backends/meta-backend-private.h')
-rw-r--r-- | src/backends/meta-backend-private.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/backends/meta-backend-private.h b/src/backends/meta-backend-private.h index 4678f7768..5b0c849ec 100644 --- a/src/backends/meta-backend-private.h +++ b/src/backends/meta-backend-private.h @@ -108,6 +108,14 @@ struct _MetaBackendClass void meta_init_backend (GType backend_gtype); +#ifdef HAVE_WAYLAND +MetaWaylandCompositor * meta_backend_get_wayland_compositor (MetaBackend *backend); + +void meta_backend_init_wayland_display (MetaBackend *backend); + +void meta_backend_init_wayland (MetaBackend *backend); +#endif + ClutterBackend * meta_backend_get_clutter_backend (MetaBackend *backend); MetaIdleMonitor * meta_backend_get_idle_monitor (MetaBackend *backend, |