mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 21:34:09 +00:00
monitor-manager: Use connector_type instead of name sniffing
This commit is contained in:
parent
8296d4cdce
commit
c5940580ed
@ -344,11 +344,14 @@ make_display_name (MetaMonitorManager *manager,
|
|||||||
char *vendor_name = NULL;
|
char *vendor_name = NULL;
|
||||||
char *ret;
|
char *ret;
|
||||||
|
|
||||||
if (g_str_has_prefix (output->name, "LVDS") ||
|
switch (output->connector_type)
|
||||||
g_str_has_prefix (output->name, "eDP"))
|
|
||||||
{
|
{
|
||||||
|
case META_CONNECTOR_TYPE_LVDS:
|
||||||
|
case META_CONNECTOR_TYPE_eDP:
|
||||||
ret = g_strdup (_("Built-in display"));
|
ret = g_strdup (_("Built-in display"));
|
||||||
goto out;
|
goto out;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (output->width_mm > 0 && output->height_mm > 0)
|
if (output->width_mm > 0 && output->height_mm > 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user