mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
monitor-manager: Add API to find primary monitor
https://bugzilla.gnome.org/show_bug.cgi?id=777732
This commit is contained in:
parent
0c42faf34d
commit
aaddf44d45
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user