Index: group.c
===================================================================
RCS file: /cvs/gnome/metacity/src/group.c,v
retrieving revision 1.4
diff -p -u -r1.4 group.c
--- group.c	1 Dec 2002 03:58:04 -0000	1.4
+++ group.c	4 Jun 2003 05:12:30 -0000
@@ -200,6 +200,23 @@ meta_display_lookup_group (MetaDisplay *
 GSList*
 meta_group_list_windows (MetaGroup *group)
 {
+  GSList *windows;
+  GSList *tmp;
+
+  windows = meta_display_list_windows (group->display);
+
+  tmp = windows;
+  while (tmp != NULL)
+    {
+      /* Has the side effect of calculating the group if not yet
+       * calculated
+       */
+      meta_window_get_group ((MetaWindow*) tmp->data);
+      tmp = tmp->next;
+    }
+
+  g_slist_free (windows);
+
   return g_slist_copy (group->windows);
 }
 
