cursor-tracker: Keep a pointer to the backend

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1391
This commit is contained in:
Jonas Ådahl
2020-07-27 15:12:33 +02:00
parent 59a2fc4f5a
commit c23b675daf
2 changed files with 74 additions and 5 deletions

View File

@@ -988,7 +988,9 @@ meta_backend_initable_init (GInitable *initable,
if (!priv->renderer)
return FALSE;
priv->cursor_tracker = g_object_new (META_TYPE_CURSOR_TRACKER, NULL);
priv->cursor_tracker = g_object_new (META_TYPE_CURSOR_TRACKER,
"backend", backend,
NULL);
priv->dnd = g_object_new (META_TYPE_DND, NULL);