E_Client *defered_focus_ec = NULL, *reverted_focus_ec = NULL;
E_Client *ec = NULL, *old_focused = NULL, *cec = NULL;
Eina_List *child_list = NULL;
+ Eina_List *l = NULL;
Eina_Bool child_deferred;
EINA_SAFETY_ON_NULL_RETURN(zone);
// check transient_for child defered
child_deferred = EINA_FALSE;
child_list = eina_list_clone(ec->transients);
- EINA_LIST_FREE(child_list, cec)
+ EINA_LIST_FOREACH(child_list, l, cec)
{
if (cec->transient_policy == E_TRANSIENT_BELOW) continue;
if (!(cec->icccm.accepts_focus || cec->icccm.take_focus)) continue;
break;
}
}
+ eina_list_free(child_list);
if (child_deferred) continue;
defered_focus_ec = ec;