From 3fdf72128605a4b66a9c9757771363a7e53854f7 Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Thu, 2 Jun 2005 15:47:37 +0000 Subject: [PATCH] If a window requests to be raised and is denied, set the demands attention 2005-06-02 Elijah Newren * src/window.c (meta_window_configure_request): If a window requests to be raised and is denied, set the demands attention hint. Fixes #305882. --- ChangeLog | 6 ++++++ src/window.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index a2300b923..dd1d9fbc1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-06-02 Elijah Newren + + * 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 * src/window.c (meta_window_focus): if the window has a modal diff --git a/src/window.c b/src/window.c index 385bc4291..217fbecf9 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 {