mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 12:00:44 -05:00
8008f0b7b0
This changes the setup phase of clutter to not be result of calling an init function that sets up a few global singletons, via global singleton setup vfuncs. The way it worked was that mutter first did some initial setup (connecting to the X11 server), then set a "custom backend" setup vfunc global, before calling clutter_init(). During the clutter_init() call, the context and backend was setup by calling the global singleton getters, which implicitly created the backend and context on-demand. This has now changed to mutter explicitly creating a `ClutterContext` (which is actually a `ClutterMainContext`, but with the name shortened to be consistent with `CoglContext` and `MetaContext`), calling it with a backend constructor vfunc and user data pointer. This function now explicitly creates the backend, without having to go via the previously set global vfunc. This changes the behavior of some "get_default()" like functions, which will now fail if called after mutter has shut down, as when it does so, it now destroys the backends and contexts, not only its own, but the clutter ones too. The "ownership" of the clutter backend is also moved to `ClutterContext`, and MetaBackend is changed to fetch it via the clutter context. This also removed the unused option parsing that existed in clutter. In some places, NULL checks for fetching the clutter context, or backend, and fetching the cogl context from the clutter backend, had to be added. The reason for this is that some code that handles EGL contexts attempts to restore the cogl EGL context tracking so that the right EGL context is used by cogl the next time. This makes no sense to do before Cogl and Clutter are even initialized, which was the case. It wasn't noticed because the relevant singletons were initialized on demand via their "getters". Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2002> |
||
---|---|---|
.. | ||
native | ||
x11 | ||
edid-parse.c | ||
edid.h | ||
gsm-inhibitor-flag.h | ||
meta-backend-private.h | ||
meta-backend-types.h | ||
meta-backend.c | ||
meta-barrier-private.h | ||
meta-barrier.c | ||
meta-crtc-mode.c | ||
meta-crtc-mode.h | ||
meta-crtc.c | ||
meta-crtc.h | ||
meta-cursor-renderer.c | ||
meta-cursor-renderer.h | ||
meta-cursor-sprite-xcursor.c | ||
meta-cursor-sprite-xcursor.h | ||
meta-cursor-tracker-private.h | ||
meta-cursor-tracker.c | ||
meta-cursor.c | ||
meta-cursor.h | ||
meta-dbus-session-watcher.c | ||
meta-dbus-session-watcher.h | ||
meta-display-config-shared.h | ||
meta-dnd-private.h | ||
meta-egl-ext.h | ||
meta-egl.c | ||
meta-egl.h | ||
meta-gles3-table.h | ||
meta-gles3.c | ||
meta-gles3.h | ||
meta-gpu.c | ||
meta-gpu.h | ||
meta-idle-manager.c | ||
meta-idle-manager.h | ||
meta-idle-monitor-private.h | ||
meta-idle-monitor.c | ||
meta-input-device-private.h | ||
meta-input-device.c | ||
meta-input-mapper-private.h | ||
meta-input-mapper.c | ||
meta-input-settings-dummy.c | ||
meta-input-settings-dummy.h | ||
meta-input-settings-private.h | ||
meta-input-settings.c | ||
meta-keymap-utils.c | ||
meta-keymap-utils.h | ||
meta-logical-monitor.c | ||
meta-logical-monitor.h | ||
meta-monitor-config-manager.c | ||
meta-monitor-config-manager.h | ||
meta-monitor-config-migration.c | ||
meta-monitor-config-migration.h | ||
meta-monitor-config-store.c | ||
meta-monitor-config-store.h | ||
meta-monitor-manager-dummy.c | ||
meta-monitor-manager-dummy.h | ||
meta-monitor-manager-private.h | ||
meta-monitor-manager.c | ||
meta-monitor-transform.c | ||
meta-monitor-transform.h | ||
meta-monitor.c | ||
meta-monitor.h | ||
meta-orientation-manager.c | ||
meta-orientation-manager.h | ||
meta-output.c | ||
meta-output.h | ||
meta-pointer-constraint.c | ||
meta-pointer-constraint.h | ||
meta-profiler.c | ||
meta-profiler.h | ||
meta-remote-access-controller-private.h | ||
meta-remote-access-controller.c | ||
meta-remote-desktop-session.c | ||
meta-remote-desktop-session.h | ||
meta-remote-desktop.c | ||
meta-remote-desktop.h | ||
meta-renderer-view.c | ||
meta-renderer-view.h | ||
meta-renderer.c | ||
meta-renderer.h | ||
meta-screen-cast-area-stream-src.c | ||
meta-screen-cast-area-stream-src.h | ||
meta-screen-cast-area-stream.c | ||
meta-screen-cast-area-stream.h | ||
meta-screen-cast-monitor-stream-src.c | ||
meta-screen-cast-monitor-stream-src.h | ||
meta-screen-cast-monitor-stream.c | ||
meta-screen-cast-monitor-stream.h | ||
meta-screen-cast-session.c | ||
meta-screen-cast-session.h | ||
meta-screen-cast-stream-src.c | ||
meta-screen-cast-stream-src.h | ||
meta-screen-cast-stream.c | ||
meta-screen-cast-stream.h | ||
meta-screen-cast-virtual-stream-src.c | ||
meta-screen-cast-virtual-stream-src.h | ||
meta-screen-cast-virtual-stream.c | ||
meta-screen-cast-virtual-stream.h | ||
meta-screen-cast-window-stream-src.c | ||
meta-screen-cast-window-stream-src.h | ||
meta-screen-cast-window-stream.c | ||
meta-screen-cast-window-stream.h | ||
meta-screen-cast-window.c | ||
meta-screen-cast-window.h | ||
meta-screen-cast.c | ||
meta-screen-cast.h | ||
meta-settings-private.h | ||
meta-settings.c | ||
meta-stage-impl-private.h | ||
meta-stage-impl.c | ||
meta-stage-private.h | ||
meta-stage-view-private.h | ||
meta-stage-view.c | ||
meta-stage.c | ||
meta-viewport-info.c | ||
meta-viewport-info.h | ||
meta-virtual-monitor.c | ||
meta-virtual-monitor.h |