diff --git a/src/core/display-private.h b/src/core/display-private.h index 55e1d27d1..6a378ee98 100644 --- a/src/core/display-private.h +++ b/src/core/display-private.h @@ -38,6 +38,7 @@ #include "clutter/clutter.h" #include "core/keybindings-private.h" #include "core/meta-gesture-tracker-private.h" +#include "core/meta-selection.h" #include "core/stack-tracker.h" #include "core/startup-notification-private.h" #include "meta/barrier.h" @@ -246,6 +247,8 @@ struct _MetaDisplay MetaWorkspaceManager *workspace_manager; MetaSoundPlayer *sound_player; + + MetaSelection *selection; }; struct _MetaDisplayClass @@ -440,4 +443,6 @@ MetaWindow *meta_display_get_window_from_id (MetaDisplay *display, uint64_t window_id); uint64_t meta_display_generate_window_id (MetaDisplay *display); +MetaSelection * meta_display_get_selection (MetaDisplay *display); + #endif diff --git a/src/core/display.c b/src/core/display.c index 0de99edb2..903024269 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -724,6 +724,8 @@ meta_display_open (void) display->bell = meta_bell_new (display); + display->selection = meta_selection_new (display); + if (meta_should_autostart_x11_display ()) { x11_display = meta_x11_display_new (display, &error); @@ -3682,3 +3684,9 @@ meta_display_get_sound_player (MetaDisplay *display) { return display->sound_player; } + +MetaSelection * +meta_display_get_selection (MetaDisplay *display) +{ + return display->selection; +}