summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-06-18 03:32:27 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-06-18 03:32:27 +0000
commitdbcacfa5ba7ac179d0b97008334185a3f2db7435 (patch)
treeb5b8b1a60aa15be6da37efb8647a3193fe666794 /src
parente51e7ab77af2450f288de72adec9b46f1401f6ec (diff)
downloadmetacity-dbcacfa5ba7ac179d0b97008334185a3f2db7435.tar.gz
metacity-dbcacfa5ba7ac179d0b97008334185a3f2db7435.tar.bz2
don't use a minimized window as the next focus window, patch from
2002-06-17 Havoc Pennington <hp@pobox.com> * src/stack.c (meta_stack_get_default_focus_window): don't use a minimized window as the next focus window, patch from blackc@speakeasy.net
Diffstat (limited to 'src')
-rw-r--r--src/stack.c1
-rw-r--r--src/window.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/stack.c b/src/stack.c
index ee7e749..27e7756 100644
--- a/src/stack.c
+++ b/src/stack.c
@@ -1011,6 +1011,7 @@ meta_stack_get_default_focus_window (MetaStack *stack,
if (window &&
window != not_this_one &&
(window->unmaps_pending == 0) &&
+ !window->minimized &&
(workspace == NULL ||
meta_window_visible_on_workspace (window, workspace)))
{
diff --git a/src/window.c b/src/window.c
index 416f52f..e4eebe6 100644
--- a/src/window.c
+++ b/src/window.c
@@ -948,6 +948,7 @@ set_net_wm_state (MetaWindow *window)
return meta_error_trap_pop (window->display);
}
+/* FIXME rename this, it makes it sound like map state is relevant */
gboolean
meta_window_visible_on_workspace (MetaWindow *window,
MetaWorkspace *workspace)