mirror of
https://github.com/brl/mutter.git
synced 2025-08-04 07:34:53 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user