[gnome-settings-daemon/gnome-2-28] RANDR - Allow 'LCD' as a laptop's output name



commit ba897eccdd4ceb375019d48c12dbe304f6ef7168
Author: Federico Mena Quintero <federico novell com>
Date:   Thu Feb 18 15:41:04 2010 -0600

    RANDR - Allow 'LCD' as a laptop's output name
    
    Fglrx (proprietary ATI driver that makes me cry) and RadeonHD both seem to use
    "LCD" as a prefix to the output name of the built-in LCD.
    
    In the future we will try to be more robust by using RANDR 1.3's ConnectorType
    property for outputs.
    
    Signed-off-by: Federico Mena Quintero <federico novell com>

 plugins/xrandr/gsd-xrandr-manager.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/xrandr/gsd-xrandr-manager.c b/plugins/xrandr/gsd-xrandr-manager.c
index 6f4c062..389cf87 100644
--- a/plugins/xrandr/gsd-xrandr-manager.c
+++ b/plugins/xrandr/gsd-xrandr-manager.c
@@ -450,7 +450,8 @@ is_laptop (GnomeOutputInfo *output)
         if (output->connected && output_name &&
             (strstr (output_name, "lvds")	||
              strstr (output_name, "LVDS")	||
-             strstr (output_name, "Lvds")))
+             strstr (output_name, "Lvds")       ||
+             strstr (output_name, "LCD")))
         {
                 return TRUE;
         }



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