summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2005-02-02 18:46:09 +0000
committerElijah Newren <newren@src.gnome.org>2005-02-02 18:46:09 +0000
commitde5588c10ee640c23426c62553df0964f29ef28e (patch)
tree1f7f26bcf63381debb11f5d3d160c1829122d15b /doc
parent03adcdac31b523d465200c9b46d95c1b83e20776 (diff)
downloadmetacity-de5588c10ee640c23426c62553df0964f29ef28e.tar.gz
metacity-de5588c10ee640c23426c62553df0964f29ef28e.tar.bz2
Focus parents of dismissed transient windows in preference to the window
2005-02-02 Elijah Newren <newren@gmail.com> Focus parents of dismissed transient windows in preference to the window that most recently had keyboard focus. Fixes #157360. * doc/how-to-get-focus-right.txt: Note the distinction between "most recently used window" and "most recent to have keyboard focus" that we are now making. * src/workspace.c: (focus_ancestor_or_mru_window): rename from meta_workspace_focus_mru_window, and first check whether we need to focus an ancestor window before looking for the mru window, (record_ancestor): helper function for focus_ancestor_or_mru_window, (meta_workspace_focus_default_window): update due to the function rename from meta_workspace_focus_mru_window to focus_ancestor_or_mru_window
Diffstat (limited to 'doc')
-rw-r--r--doc/how-to-get-focus-right.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/how-to-get-focus-right.txt b/doc/how-to-get-focus-right.txt
index 2f9f03e..9d9ab69 100644
--- a/doc/how-to-get-focus-right.txt
+++ b/doc/how-to-get-focus-right.txt
@@ -37,6 +37,14 @@ Focus method Behavior
mouse Focus the window containing the pointer if there is one,
otherwise focus the designated "no_focus_window".
+Note that "most recently used window", as used here, has a slightly
+different connotation than "most recent to have keyboard focus". This
+is because when a user activates a window that is a transient, its
+ancestor(s) should be considered to be more recently used than other
+windows that have had the keyboard focus more recently. (See bug
+157360; this may mean that the alt-tab order should also change
+simultaneously, although the current implementation does not do that.)
+
Also, sometimes a new window will be mapped (e.g. unminimizing a
window or launching a new application). Most users want to interact
with new windows right away, so these should typically be focused.