summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2005-06-02 15:47:37 +0000
committerElijah Newren <newren@src.gnome.org>2005-06-02 15:47:37 +0000
commit3fdf72128605a4b66a9c9757771363a7e53854f7 (patch)
tree7f43c04a0320e8af92188232138eea91f2ef2add
parent90dc2116ad179b4dcfcc715db66ca6df4067fc9a (diff)
downloadmetacity-3fdf72128605a4b66a9c9757771363a7e53854f7.tar.gz
If a window requests to be raised and is denied, set the demands attention
2005-06-02 Elijah Newren <newren@gmail.com> * src/window.c (meta_window_configure_request): If a window requests to be raised and is denied, set the demands attention hint. Fixes #305882.
-rw-r--r--ChangeLog6
-rw-r--r--src/window.c5
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a2300b92..dd1d9fbc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2005-06-02 Elijah Newren <newren@gmail.com>
+ * src/window.c (meta_window_configure_request): If a window
+ requests to be raised and is denied, set the demands attention
+ hint. Fixes #305882.
+
+2005-06-02 Elijah Newren <newren@gmail.com>
+
* src/window.c (meta_window_focus): if the window has a modal
transient which is being unmanaged, don't focus it. Fixes the
Metacity issue reported in #305362.
diff --git a/src/window.c b/src/window.c
index 385bc429..217fbecf 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4082,6 +4082,11 @@ meta_window_configure_request (MetaWindow *window,
window->net_wm_user_time,
active_window->desc,
active_window->net_wm_user_time);
+ if (event->xconfigurerequest.detail == Above)
+ {
+ window->wm_state_demands_attention = TRUE;
+ set_net_wm_state (window);
+ }
}
else
{