summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeth Forshee <seth.forshee@canonical.com>2012-02-23 20:07:38 (GMT)
committerFederico Mena Quintero <federico@gnome.org>2012-02-23 20:07:42 (GMT)
commit11997d32313cd67f24cb26e18c562fa4b75ea36f (patch)
tree5d9f73725123188c8feaa706f27e59a2bab840ff
parent351d2b8a80f6c2f8653f73e7791d94c256e78a80 (diff)
downloadgnome-desktop-11997d32313cd67f24cb26e18c562fa4b75ea36f.zip
gnome-desktop-11997d32313cd67f24cb26e18c562fa4b75ea36f.tar.xz
bgo#670459 [GnomeRR] - Consider Embedded Display Port outputs as the laptop's built-in display
xorg still hasn't fixed https://bugs.freedesktop.org/show_bug.cgi?id=26736 which is about drivers properly exposing the ConnectorType property. This would let us unambiguously identify a laptop's built-in display without playing heuristics on the RANDR output names. For now, we'll use 'eDP' as the name given to Embedded Display Port outputs.
-rw-r--r--libgnome-desktop/gnome-rr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgnome-desktop/gnome-rr.c b/libgnome-desktop/gnome-rr.c
index c7afd8e..b319b26 100644
--- a/libgnome-desktop/gnome-rr.c
+++ b/libgnome-desktop/gnome-rr.c
@@ -1905,7 +1905,8 @@ gnome_rr_output_is_laptop (GnomeRROutput *output)
&& (strstr (output->name, "lvds") || /* Most drivers use an "LVDS" prefix... */
strstr (output->name, "LVDS") ||
strstr (output->name, "Lvds") ||
- strstr (output->name, "LCD"))) /* ... but fglrx uses "LCD" in some versions. Shoot me now, kthxbye. */
+ strstr (output->name, "LCD") || /* ... but fglrx uses "LCD" in some versions. Shoot me now, kthxbye. */
+ strstr (output->name, "eDP"))) /* eDP is for internal laptop panel connections */
return TRUE;
return FALSE;