forked from enlightenment/enlightenment
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:
parent
970b46b631
commit
29312e1216
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue