mirror of
https://github.com/brl/mutter.git
synced 2024-11-09 15:37:00 -05:00
core: Set up MetaSelection on MetaDisplay
https://gitlab.gnome.org/GNOME/mutter/merge_requests/320
This commit is contained in:
parent
09aa82db49
commit
ab76576340
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user