display: Keep pointer to the context

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
This commit is contained in:
Jonas Ådahl
2021-03-03 16:05:09 +01:00
parent 4be9bc9db4
commit e8af5fd398
4 changed files with 32 additions and 4 deletions

View File

@ -321,7 +321,7 @@ meta_context_start (MetaContext *context,
meta_backend_init_wayland (meta_get_backend ());
#endif
priv->display = meta_display_new (error);
priv->display = meta_display_new (context, error);
if (!priv->display)
return FALSE;