backend: Expose get_monitor_manager() publicly

So that it can eventually replace the standalone singleton getter.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2128>
This commit is contained in:
Jonas Ådahl 2021-12-02 22:02:02 +01:00 committed by Marge Bot
parent 5afe51b143
commit 65d8164833
3 changed files with 7 additions and 3 deletions

View File

@ -122,8 +122,6 @@ MetaIdleMonitor * meta_backend_get_idle_monitor (MetaBackend *backend,
MetaIdleManager * meta_backend_get_idle_manager (MetaBackend *backend);
META_EXPORT_TEST
MetaMonitorManager * meta_backend_get_monitor_manager (MetaBackend *backend);
META_EXPORT_TEST
MetaOrientationManager * meta_backend_get_orientation_manager (MetaBackend *backend);
MetaCursorTracker * meta_backend_get_cursor_tracker (MetaBackend *backend);

View File

@ -1185,7 +1185,9 @@ meta_backend_get_idle_manager (MetaBackend *backend)
}
/**
* meta_backend_get_monitor_manager: (skip)
* meta_backend_get_monitor_manager:
*
* Returns: (transfer none): A #MetaMonitorManager
*/
MetaMonitorManager *
meta_backend_get_monitor_manager (MetaBackend *backend)

View File

@ -30,6 +30,7 @@
#include "clutter/clutter.h"
#include "meta/meta-dnd.h"
#include "meta/meta-idle-monitor.h"
#include "meta/meta-monitor-manager.h"
#include "meta/meta-remote-access-controller.h"
#define META_TYPE_BACKEND (meta_backend_get_type ())
@ -64,6 +65,9 @@ MetaSettings *meta_backend_get_settings (MetaBackend *backend);
META_EXPORT
MetaIdleMonitor * meta_backend_get_core_idle_monitor (MetaBackend *backend);
META_EXPORT
MetaMonitorManager * meta_backend_get_monitor_manager (MetaBackend *backend);
META_EXPORT
MetaRemoteAccessController * meta_backend_get_remote_access_controller (MetaBackend *backend);