summaryrefslogtreecommitdiff
path: root/src/display.h
diff options
context:
space:
mode:
authorElijah Newren <newren@math.utah.edu>2004-09-15 15:38:09 +0000
committerElijah Newren <newren@src.gnome.org>2004-09-15 15:38:09 +0000
commit4b9fe2cae7117418d47bbcf48e0f155d87c31970 (patch)
tree62c33d12b7a8754e05c0d9c51cd7abd150dfe085 /src/display.h
parentc188ae0954bfde0ec09d2d3216844be3a7221c76 (diff)
downloadmetacity-4b9fe2cae7117418d47bbcf48e0f155d87c31970.tar.gz
metacity-4b9fe2cae7117418d47bbcf48e0f155d87c31970.tar.bz2
Focus correct window after minimizing via the tasklist (fixes #128200; see
2004-09-15 Elijah Newren <newren@math.utah.edu> Focus correct window after minimizing via the tasklist (fixes #128200; see also #107681) * src/display.h (struct _MetaDisplay): track the previously_focused_window * src/display.c (meta_display_open): initialize previously_focused_window * src/window.c (meta_window_free): clear the previously_focused_window if it's being freed, (meta_window_client_message): if we get a request to minimize the previously_focused_window and the focus_window is a dock or the desktop, focus the default window, (meta_window_notify_focus): update the previously_focused_window
Diffstat (limited to 'src/display.h')
-rw-r--r--src/display.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/display.h b/src/display.h
index cfc3b98..d944d5f 100644
--- a/src/display.h
+++ b/src/display.h
@@ -188,6 +188,10 @@ struct _MetaDisplay
*/
MetaWindow *focus_window;
+ /* Window that was the actual window from focus events before focus_window
+ */
+ MetaWindow *previously_focused_window;
+
/* window we are expecting a FocusIn event for
*/
MetaWindow *expected_focus_window;