[gnome-desktop] Revert "gnome-bg: force property update when doing new crossfade frame"



commit bd2b5fd8bb4c8088987ee0664fcc7a7452a795db
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Mar 24 12:11:41 2011 -0400

    Revert "gnome-bg: force property update when doing new crossfade frame"
    
    This was actually committed by accident, and it triggers crashes in
    Xorg every time the background is set.
    
    See
    https://mail.gnome.org/archives/release-team/2011-March/msg00244.html
    for more details.
    
    This reverts commit e36d931ca2aad168427e22d23f9013316854370e.

 libgnome-desktop/gnome-bg-crossfade.c |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/libgnome-desktop/gnome-bg-crossfade.c b/libgnome-desktop/gnome-bg-crossfade.c
index 8a4778c..02a120e 100644
--- a/libgnome-desktop/gnome-bg-crossfade.c
+++ b/libgnome-desktop/gnome-bg-crossfade.c
@@ -371,20 +371,6 @@ animations_are_disabled (GnomeBGCrossfade *fade)
 }
 
 static void
-send_root_property_change_notification (GnomeBGCrossfade *fade)
-{
-        long zero_length_pixmap;
-
-        /* We do a zero length append to force a change notification,
-         * without changing the value */
-        XChangeProperty (GDK_WINDOW_XDISPLAY (fade->priv->window),
-                         GDK_WINDOW_XID (fade->priv->window),
-                         gdk_x11_get_xatom_by_name ("_XROOTPMAP_ID"),
-                         XA_PIXMAP, 32, PropModeAppend,
-                         (guchar *) &zero_length_pixmap, 0);
-}
-
-static void
 draw_background (GnomeBGCrossfade *fade)
 {
 	if (gdk_window_get_window_type (fade->priv->window) == GDK_WINDOW_ROOT) {
@@ -394,9 +380,6 @@ draw_background (GnomeBGCrossfade *fade)
                             gdk_window_get_width (fade->priv->window),
                             gdk_window_get_height (fade->priv->window),
                             False);
-
-                send_root_property_change_notification (fade);
-
 		gdk_flush ();
 	} else {
 		gdk_window_invalidate_rect (fade->priv->window, NULL, FALSE);



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