From dbcf03535dc828c8384d9a8a1f0706d89d5fc57f Mon Sep 17 00:00:00 2001 From: Rob Adams Date: Thu, 21 Aug 2003 04:32:21 +0000 Subject: [PATCH] Complete the transition to using the MRU window as the default focus 2003-08-20 Rob Adams 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 --- ChangeLog | 10 ++++++++++ src/window.c | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3de68ab68..9425a8b71 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2003-08-20 Rob Adams + + 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-20 Rob Adams * src/constraints.c (meta_window_constrain): do northwest resize diff --git a/src/window.c b/src/window.c index c18e59ea4..9bbb77474 100644 --- a/src/window.c +++ b/src/window.c @@ -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 *window) 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 {