[gnome-panel] [panel] Harden check for LVDS-named output



commit 9e55fc1da1b32d96e4fa5425627f9217a4dc181c
Author: Vincent Untz <vuntz gnome org>
Date:   Fri Aug 21 12:42:40 2009 +0200

    [panel] Harden check for LVDS-named output
    
    Some outputs can be named Lvds too, so we should ignore the case.

 gnome-panel/panel-multiscreen.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnome-panel/panel-multiscreen.c b/gnome-panel/panel-multiscreen.c
index b301753..8a05221 100644
--- a/gnome-panel/panel-multiscreen.c
+++ b/gnome-panel/panel-multiscreen.c
@@ -85,10 +85,10 @@ _panel_multiscreen_output_should_be_first (Display       *xdisplay,
 	}
 
 	/* Pre-1.3 fallback:
-	 * "LVDS" is the oh-so-intuitive name that X gives to
-	 * laptop LCDs. It can actually be LVDS0, LVDS-0, etc.
+	 * "LVDS" is the oh-so-intuitive name that X gives to laptop LCDs.
+	 * It can actually be LVDS0, LVDS-0, Lvds, etc.
 	 */
-	return (g_str_has_prefix (info->name, "LVDS"));
+	return (g_ascii_strncasecmp (info->name, "LVDS", strlen ("LVDS")) == 0);
 }
 #endif
 



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