Subject: xfce4-power-manager fails to start (receives X window system error 
"BadName")
Package: xfce4-power-manager, xfce4-power-manager-data, 
xfce4-power-manager-plugins
Version: 1.0.10-4
Severity: important

this was a well known 
bughttps://bugs.launchpad.net/ubuntu/+source/xfce4-power-manager/+bug/821170
I've attached a patch downloaded from ubuntu source package. after applying 
this patch to xfce4-power-manager=1.0.10-4 from debian wheezy all works perfect.
Please add this patch to the official repository.

Subject: Trap X errors when initializing brightness management
Origin: other, https://bugzilla.xfce.org/attachment.cgi?id=3911
Bug: https://bugzilla.xfce.org/show_bug.cgi?id=7999
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-manager/+bug/821170
---
 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;
_______________________________________________
Pkg-xfce-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-xfce-devel

Reply via email to