mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
monitor: Add API to get connector
The connector returned is the one of the main output. In other words, for tiled monitors, it is the connector of the (0, 0) tile, and for non-tiled, it is simply the connector of the output. https://bugzilla.gnome.org/show_bug.cgi?id=777732
This commit is contained in:
parent
15dd23a323
commit
5b4a96e3a3
@ -271,6 +271,15 @@ meta_monitor_get_subpixel_order (MetaMonitor *monitor)
|
||||
return output->subpixel_order;
|
||||
}
|
||||
|
||||
const char *
|
||||
meta_monitor_get_connector (MetaMonitor *monitor)
|
||||
{
|
||||
MetaOutput *output;
|
||||
|
||||
output = meta_monitor_get_main_output (monitor);
|
||||
return output->name;
|
||||
}
|
||||
|
||||
const char *
|
||||
meta_monitor_get_vendor (MetaMonitor *monitor)
|
||||
{
|
||||
|
@ -117,6 +117,8 @@ void meta_monitor_get_physical_dimensions (MetaMonitor *monitor,
|
||||
|
||||
CoglSubpixelOrder meta_monitor_get_subpixel_order (MetaMonitor *monitor);
|
||||
|
||||
const char * meta_monitor_get_connector (MetaMonitor *monitor);
|
||||
|
||||
const char * meta_monitor_get_vendor (MetaMonitor *monitor);
|
||||
|
||||
const char * meta_monitor_get_product (MetaMonitor *monitor);
|
||||
|
Loading…
Reference in New Issue
Block a user