Index: gnome-panel/panel-background.c
===================================================================
RCS file: /cvs/gnome/gnome-panel/gnome-panel/panel-background.c,v
retrieving revision 1.16
diff -u -p -r1.16 panel-background.c
--- gnome-panel/panel-background.c	1 Nov 2004 01:45:13 -0000	1.16
+++ gnome-panel/panel-background.c	5 Nov 2004 02:55:18 -0000
@@ -125,6 +125,12 @@ panel_background_prepare (PanelBackgroun
 		break;
 	}
 
+	/* Panel applets may use the panel's background pixmap to
+	 * decide how to draw themselves.  Therefore, we need to
+	 * make sure that all drawing has been completed before
+	 * the applet looks at the pixmap. */
+	gdk_display_sync (gdk_drawable_get_display (background->window));
+
 	gdk_window_get_user_data (GDK_WINDOW (background->window),
 				  (gpointer) &widget);
 
