diff options
author | Thomas Thurman <tthurman@gnome.org> | 2008-10-22 03:21:23 +0000 |
---|---|---|
committer | Thomas James Alexander Thurman <tthurman@src.gnome.org> | 2008-10-22 03:21:23 +0000 |
commit | f186d90dd3f69a9c71c891fd81f8d109869785f2 (patch) | |
tree | bfac156d80c36bce9aae13be1905c722ed2c82c9 | |
parent | 671b69a2512f811f9a5064cdf673fdc209eeadd5 (diff) | |
download | metacity-f186d90dd3f69a9c71c891fd81f8d109869785f2.tar.gz |
minimised windows are necessarily obscured.
2008-10-22 Thomas Thurman <tthurman@gnome.org>
* src/core/window.c (meta_window_set_demands_attention): minimised
windows are necessarily obscured.
svn path=/trunk/; revision=3971
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/core/window.c | 33 |
2 files changed, 26 insertions, 12 deletions
@@ -1,5 +1,10 @@ 2008-10-22 Thomas Thurman <tthurman@gnome.org> + * src/core/window.c (meta_window_set_demands_attention): minimised + windows are necessarily obscured. + +2008-10-22 Thomas Thurman <tthurman@gnome.org> + Slight transformation of the x-macros used in keybindings to make them clearer: write handler names out in full because the old suffix system was confusing to people diff --git a/src/core/window.c b/src/core/window.c index e4bb13b6..f4cd5931 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -8062,6 +8062,10 @@ meta_window_set_demands_attention (MetaWindow *window) /* windows on other workspaces are necessarily obscured */ obscured = TRUE; } + else if (window->minimized) + { + obscured = TRUE; + } else { meta_window_get_outer_rect (window, &candidate_rect); @@ -8086,21 +8090,26 @@ meta_window_set_demands_attention (MetaWindow *window) } } } - /* If the window's in full view, there's no point setting the flag. */ - + } + + if (obscured) + { meta_topic (META_DEBUG_WINDOW_OPS, - "Not marking %s as needing attention because it's in full view\n", - window->desc); - return; + "Marking %s as needing attention\n", + window->desc); + + window->wm_state_demands_attention = TRUE; + set_net_wm_state (window); } - - /* Otherwise, go ahead and set the flag. */ - - meta_topic (META_DEBUG_WINDOW_OPS, - "Marking %s as needing attention\n", window->desc); + else + { + /* If the window's in full view, there's no point setting the flag. */ - window->wm_state_demands_attention = TRUE; - set_net_wm_state (window); + meta_topic (META_DEBUG_WINDOW_OPS, + "Not marking %s as needing attention because " + "it's in full view\n", + window->desc); + } } void |