e_client_transient_child_bottom_get(E_Client *ec)
{
E_Client *bottom_ec = NULL;
- Eina_List *transient_list = NULL;
+ Eina_List *transient_below_list = NULL;
Eina_List *l = NULL;
- _e_client_transient_for_below_group_make(ec, &transient_list);
+ _e_client_transient_for_below_group_make(ec, &transient_below_list);
- if (transient_list)
+ if (transient_below_list)
{
- EINA_LIST_FOREACH(transient_list, l, bottom_ec)
+ E_Client *temp_ec = NULL;
+ E_Client *temp_ec2 = NULL;
+
+ E_CLIENT_FOREACH(temp_ec)
{
- if (bottom_ec->visible)
- break;
+ if (bottom_ec) break;
+
+ if (temp_ec == ec)
+ {
+ bottom_ec = ec;
+ break;
+ }
+
+ EINA_LIST_FOREACH(transient_below_list, l, temp_ec2)
+ {
+ if (temp_ec == temp_ec2)
+ {
+ bottom_ec = temp_ec2;
+ break;
+ }
+ }
}
- eina_list_free(transient_list);
+ eina_list_free(transient_below_list);
}
return bottom_ec;
}