Index: window.c
===================================================================
RCS file: /cvs/gnome/metacity/src/window.c,v
retrieving revision 1.295
diff -p -u -r1.295 window.c
--- window.c	20 Sep 2003 04:58:25 -0000	1.295
+++ window.c	20 Sep 2003 17:03:15 -0000
@@ -3204,7 +3204,7 @@ meta_window_stick (MetaWindow  *window)
 
   /* We do, however, change the MRU lists of all the workspaces
    */
-  tmp = window->workspaces;
+  tmp = window->screen->workspaces;
   while (tmp)
     {
       workspace = (MetaWorkspace *) tmp->data;
@@ -3233,7 +3233,7 @@ meta_window_unstick (MetaWindow  *window
   window->on_all_workspaces = FALSE;
 
   /* Remove window from MRU lists that it doesn't belong in */
-  tmp = window->workspaces;
+  tmp = window->screen->workspaces;
   while (tmp)
     {
       workspace = (MetaWorkspace *) tmp->data;
