clutter/backend/native: Keep a pointer to the actual backend

This eliminates going via a global variable.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2002>
This commit is contained in:
Jonas Ådahl
2021-09-16 11:31:34 +02:00
committed by Marge Bot
parent cf1715ac43
commit 1fbdfa8ca7
3 changed files with 24 additions and 3 deletions

View File

@ -117,7 +117,7 @@ meta_backend_native_dispose (GObject *object)
static ClutterBackend *
meta_backend_native_create_clutter_backend (MetaBackend *backend)
{
return g_object_new (META_TYPE_CLUTTER_BACKEND_NATIVE, NULL);
return CLUTTER_BACKEND (meta_clutter_backend_native_new (backend));
}
static ClutterSeat *