Sophie

Sophie

distrib > Fedora > 16 > x86_64 > media > updates-src > by-pkgid > 6fbbfac04a44f78715f1c5b19a278f7a > files > 12

xfce4-power-manager-1.0.10-2.fc16.src.rpm

---
 common/xfpm-brightness.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/common/xfpm-brightness.c
+++ b/common/xfpm-brightness.c
@@ -65,10 +65,13 @@
 {
     XRRPropertyInfo *info;
     gboolean ret = TRUE;
+    gint rc;
 
+    gdk_error_trap_push ();
     info = XRRQueryOutputProperty (GDK_DISPLAY (), output, brightness->priv->backlight);
+    rc = gdk_error_trap_pop ();
     
-    if (info == NULL) 
+    if (info == NULL || rc != Success)
     {
 	g_warning ("could not get output property");
 	return FALSE;