[gnome-desktop] GnomeRR: Do not assume outputs with the id of 'default' are built-in



commit 97f24ab849e7773053574d29592eb52cce892d33
Author: Richard Hughes <richard hughsie com>
Date:   Tue Aug 27 11:45:57 2013 +0100

    GnomeRR: Do not assume outputs with the id of 'default' are built-in
    
    We are using this in all kinds of places to work out if a display is embedded
    (like a laptop display) and cannot be removed. Some of the binary drivers do
    not set a sensible ID, but it's not more sane to assume these default values are
    either for internal or external panels. Assuming the former breaks VMVGA in
    virtual machines. We should not return TRUE when there is no heuristic to use.
    
    Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=706738

 libgnome-desktop/gnome-rr.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libgnome-desktop/gnome-rr.c b/libgnome-desktop/gnome-rr.c
index 88c87b5..167c5df 100644
--- a/libgnome-desktop/gnome-rr.c
+++ b/libgnome-desktop/gnome-rr.c
@@ -1476,8 +1476,7 @@ _gnome_rr_output_name_is_builtin_display (const char *name)
        strstr (name, "LVDS") ||
        strstr (name, "Lvds") ||
        strstr (name, "LCD")  ||  /* ... but fglrx uses "LCD" in some versions.  Shoot me now, kthxbye. */
-       strstr (name, "eDP")  ||  /* eDP is for internal built-in panel connections */
-       strstr (name, "default")) /* Finally, NVidia and all others that don't bother to do RANDR properly */
+       strstr (name, "eDP"))     /* eDP is for internal built-in panel connections */
         return TRUE;
 
     return FALSE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]