for (; x >= e_comp_canvas_layer_map(E_LAYER_CLIENT_DESKTOP); x--)
{
- if (!e_comp->layers[x].clients) continue;
- EINA_INLIST_REVERSE_FOREACH(e_comp->layers[x].clients, ec2)
+ if (e_comp->layers[x].clients)
{
- if (ec2 == ec) continue;
- if ((ec2->comp_data && ec2->comp_data->mapped) &&
- (!e_object_is_del(E_OBJECT(ec2))) &&
- (!e_client_util_ignored_get(ec2)) &&
- (!ec2->exp_iconify.by_client))
- return ec2;
+ EINA_INLIST_REVERSE_FOREACH(e_comp->layers[x].clients, ec2)
+ {
+ if (ec2 == ec) continue;
+ if ((ec2->comp_data && ec2->comp_data->mapped) &&
+ (!e_object_is_del(E_OBJECT(ec2))) &&
+ (!e_client_util_ignored_get(ec2)) &&
+ (!ec2->exp_iconify.by_client))
+ return ec2;
+ }
}
+
+ if (x == 0)
+ break;
}
return NULL;
}