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.
This commit is contained in:
Mike Blumenkrantz 2015-07-06 12:45:03 -04:00
parent 970b46b631
commit 29312e1216
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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);