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



commit f8f1aaa9f57456f2d7ff66f95f3e5eb8719a549b
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 08a75d5..577be09 100644
--- a/plugins/xrandr/gsd-xrandr-manager.c
+++ b/plugins/xrandr/gsd-xrandr-manager.c
@@ -492,7 +492,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]