Index: src/screen.c
===================================================================
RCS file: /cvs/gnome/metacity/src/screen.c,v
retrieving revision 1.130.2.1
diff -p -u -r1.130.2.1 screen.c
--- src/screen.c	17 Oct 2004 04:26:55 -0000	1.130.2.1
+++ src/screen.c	22 Oct 2004 20:32:06 -0000
@@ -2182,10 +2182,14 @@ meta_screen_update_showing_desktop_hint 
 static void
 queue_windows_showing (MetaScreen *screen)
 {
-  GList *windows;
-  GList *tmp;
+  GSList *windows;
+  GSList *tmp;
 
-  windows = screen->active_workspace->windows;
+  /* Must operate on all windows on display instead of just on the
+   * active_workspace's window list, because the active_workspace's
+   * window list may not contain the on_all_workspace windows.
+   */
+  windows = meta_display_list_windows (screen->display);
 
   tmp = windows;
   while (tmp != NULL)
@@ -2197,6 +2201,8 @@ queue_windows_showing (MetaScreen *scree
       
       tmp = tmp->next;
     }
+
+  g_slist_free (windows);
 }
 
 void
