discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=29312e1216d59bc83496b8611711266d0d6d8d82

commit 29312e1216d59bc83496b8611711266d0d6d8d82
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Jul 6 12:45:03 2015 -0400

    make pager popups only trigger on urgency hint if client is not currently 
visible
    
    the annoyance of having this popup constantly triggered while a window is 
visible
    cannot be understated.
---
 src/modules/pager/e_mod_main.c       | 3 ++-
 src/modules/pager_plain/e_mod_main.c | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/modules/pager/e_mod_main.c b/src/modules/pager/e_mod_main.c
index 841a011..6f99346 100644
--- a/src/modules/pager/e_mod_main.c
+++ b/src/modules/pager/e_mod_main.c
@@ -1052,7 +1052,8 @@ _pager_cb_event_client_urgent_change(void *data 
EINA_UNUSED, int type EINA_UNUSE
 {
    if (!(ev->property & E_CLIENT_PROPERTY_URGENCY)) return 
ECORE_CALLBACK_RENEW;
 
-   if (pager_config->popup_urgent && (pager_config->popup_urgent_focus ||
+   if (pager_config->popup_urgent && (!e_client_util_desk_visible(ev->ec, 
e_desk_current_get(ev->ec->zone))) &&
+                                      (pager_config->popup_urgent_focus ||
                                       (!pager_config->popup_urgent_focus && 
(!ev->ec->focused) && (!ev->ec->want_focus))))
      {
         Pager_Popup *pp;
diff --git a/src/modules/pager_plain/e_mod_main.c 
b/src/modules/pager_plain/e_mod_main.c
index dd81015..43940f3 100644
--- a/src/modules/pager_plain/e_mod_main.c
+++ b/src/modules/pager_plain/e_mod_main.c
@@ -1412,7 +1412,8 @@ _pager_cb_event_client_urgent_change(void *data 
EINA_UNUSED, int type EINA_UNUSE
    zone = ev->ec->zone;
    urgent = ev->ec->urgent || ev->ec->icccm.urgent;
 
-   if (pager_config->popup_urgent && (pager_config->popup_urgent_focus ||
+   if (pager_config->popup_urgent && (!e_client_util_desk_visible(ev->ec, 
e_desk_current_get(ev->ec->zone))) &&
+                                      (pager_config->popup_urgent_focus ||
                                       ((!pager_config->popup_urgent_focus) && 
(!ev->ec->focused) && (!ev->ec->want_focus))))
      {
         pp = _pager_popup_find(zone);

-- 


Reply via email to