[Xfce4-commits] <parole:master> Chech if the _NET_WM_WINDOW_OPACITY_LOCKED_ATOM is valid before changing the window property, since it gives error on some window managers, like openbox (Bug #6088).

Ali Abdallah noreply at xfce.org
Thu Dec 17 14:20:01 CET 2009


Updating branch refs/heads/master
         to 13b2a09569cd8f18fcaaea41f570acb66ad38810 (commit)
       from 05a015827840ea3fe3d4a38aad087df8baa93df5 (commit)

commit 13b2a09569cd8f18fcaaea41f570acb66ad38810
Author: Ali Abdallah <aliov at xfce.org>
Date:   Thu Dec 17 14:17:40 2009 +0100

    Chech if the _NET_WM_WINDOW_OPACITY_LOCKED_ATOM is valid before
    changing the window property, since it gives error on some window
    managers, like openbox (Bug #6088).

 src/parole-player.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/parole-player.c b/src/parole-player.c
index 523458b..8b2631b 100644
--- a/src/parole-player.c
+++ b/src/parole-player.c
@@ -1723,6 +1723,9 @@ parole_player_set_wm_opacity_hint (GtkWidget *widget)
     
     atom = XInternAtom (xdisplay, "_NET_WM_WINDOW_OPACITY_LOCKED", TRUE);
     
+    if ( atom == None )
+	return;
+    
     gdkwindow = gtk_widget_get_window (widget);
     
     XChangeProperty (xdisplay, GDK_WINDOW_XID (gdkwindow),



More information about the Xfce4-commits mailing list