1
0
Fork 0

core/selection: Set display on creation

Otherwise the getter always returns `NULL`.

Fixes dd2beae6a8

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2768>
This commit is contained in:
Robert Mader 2022-12-17 16:45:42 +01:00
parent 471d23ba43
commit 7441d4f8e1

View file

@ -98,8 +98,13 @@ meta_selection_init (MetaSelection *selection)
MetaSelection *
meta_selection_new (MetaDisplay *display)
{
return g_object_new (META_TYPE_SELECTION,
NULL);
MetaSelection *selection;
selection = g_object_new (META_TYPE_SELECTION,
NULL);
selection->display = display;
return selection;
}
/**