Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/metacity/ChangeLog,v
retrieving revision 1.713
diff -p -u -r1.713 ChangeLog
--- ChangeLog	19 Aug 2003 01:09:59 -0000	1.713
+++ ChangeLog	21 Aug 2003 04:15:19 -0000
@@ -1,3 +1,13 @@
+2003-08-21  Rob Adams  <robadams@ucla.edu>
+
+	Complete the transition to using the MRU window as the default
+	focus window instead of the topmost window; fixes a number of
+	problems with sloppy focus and utility windows.  See #112031.
+
+	* src/window.c (meta_window_free): call
+	meta_workspace_focus_mru_window
+	(meta_window_minimize): call meta_workspace_focus_mru_window
+
 2003-08-18  Rob Adams  <robadams@ucla.edu>
 
 	* src/constraints.c (meta_window_constrain): recalculate frame
Index: src/window.c
===================================================================
RCS file: /cvs/gnome/metacity/src/window.c,v
retrieving revision 1.293
diff -p -u -r1.293 window.c
--- src/window.c	15 Aug 2003 22:09:55 -0000	1.293
+++ src/window.c	21 Aug 2003 04:15:35 -0000
@@ -879,7 +879,7 @@ meta_window_free (MetaWindow  *window)
       meta_topic (META_DEBUG_FOCUS,
                   "Focusing top window since we're unmanaging %s\n",
                   window->desc);
-      meta_workspace_focus_top_window (window->screen->active_workspace, window);
+      meta_workspace_focus_mru_window (window->screen->active_workspace, window);
     }
   else if (window->display->expected_focus_window == window)
     {
@@ -887,7 +887,7 @@ meta_window_free (MetaWindow  *window)
                   "Focusing top window since expected focus window freed %s\n",
                   window->desc);
       window->display->expected_focus_window = NULL;
-      meta_workspace_focus_top_window (window->screen->active_workspace, window);
+      meta_workspace_focus_mru_window (window->screen->active_workspace, window);
     }
   else
     {
@@ -1756,7 +1756,7 @@ meta_window_minimize (MetaWindow  *windo
           meta_topic (META_DEBUG_FOCUS,
                       "Focusing top window due to minimization of focus window %s\n",
                       window->desc);
-          meta_workspace_focus_top_window (window->screen->active_workspace, window);
+          meta_workspace_focus_mru_window (window->screen->active_workspace, window);
         }
       else
         {
