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:
parent
471d23ba43
commit
7441d4f8e1
@ -98,8 +98,13 @@ meta_selection_init (MetaSelection *selection)
|
|||||||
MetaSelection *
|
MetaSelection *
|
||||||
meta_selection_new (MetaDisplay *display)
|
meta_selection_new (MetaDisplay *display)
|
||||||
{
|
{
|
||||||
return g_object_new (META_TYPE_SELECTION,
|
MetaSelection *selection;
|
||||||
NULL);
|
|
||||||
|
selection = g_object_new (META_TYPE_SELECTION,
|
||||||
|
NULL);
|
||||||
|
selection->display = display;
|
||||||
|
|
||||||
|
return selection;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user