diff --git a/src/backends/meta-monitor-manager-private.h b/src/backends/meta-monitor-manager-private.h index 174867861..00bbfc516 100644 --- a/src/backends/meta-monitor-manager-private.h +++ b/src/backends/meta-monitor-manager-private.h @@ -353,6 +353,8 @@ MetaLogicalMonitor *meta_monitor_manager_get_logical_monitor_neighbor (MetaMonit MetaLogicalMonitor *logical_monitor, MetaScreenDirection direction); +MetaMonitor * meta_monitor_manager_get_primary_monitor (MetaMonitorManager *manager); + MetaMonitor * meta_monitor_manager_get_laptop_panel (MetaMonitorManager *manager); GList * meta_monitor_manager_get_monitors (MetaMonitorManager *manager); diff --git a/src/backends/meta-monitor-manager.c b/src/backends/meta-monitor-manager.c index a083a85ab..17b81b9ec 100644 --- a/src/backends/meta-monitor-manager.c +++ b/src/backends/meta-monitor-manager.c @@ -1252,6 +1252,12 @@ find_monitor (MetaMonitorManager *monitor_manager, return NULL; } +MetaMonitor * +meta_monitor_manager_get_primary_monitor (MetaMonitorManager *manager) +{ + return find_monitor (manager, meta_monitor_is_primary); +} + MetaMonitor * meta_monitor_manager_get_laptop_panel (MetaMonitorManager *manager) {