Index: nautilus-application.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-application.c,v
retrieving revision 1.188
diff -u -r1.188 nautilus-application.c
--- nautilus-application.c	30 May 2002 23:58:09 -0000	1.188
+++ nautilus-application.c	31 May 2002 18:09:23 -0000
@@ -588,6 +588,11 @@
 	create_in_progress = TRUE;
 
 	nautilus_application_desktop_window = nautilus_desktop_window_new (application);
+	/* We realize it immediately so that the NAUTILUS_DESKTOP_WINDOW_ID
+	   property is set so gnome-settings-daemon doesn't try to set the
+	   background. And we do a gdk_flush() to be sure X gets it. */
+	gtk_widget_realize (GTK_WIDGET (nautilus_application_desktop_window));
+	gdk_flush ();
 
 	create_in_progress = FALSE;
 }
