epc = sdata->parent;
EINA_SAFETY_ON_NULL_RETURN(epc);
- /* check if a subsurface has already placed below a parent */
- if (eina_list_data_find(epc->comp_data->sub.below_list, ec)) return;
-
ELOGF("TZPOL", "SUBSURF|BELOW_PARENT", ec);
epc->comp_data->sub.list = eina_list_remove(epc->comp_data->sub.list, ec);
epc->comp_data->sub.list_pending = eina_list_remove(epc->comp_data->sub.list_pending, ec);
+ epc->comp_data->sub.below_list = eina_list_remove(epc->comp_data->sub.below_list, ec);
+ epc->comp_data->sub.below_list_pending = eina_list_remove(epc->comp_data->sub.below_list_pending, ec);
+
epc->comp_data->sub.below_list_pending = eina_list_append(epc->comp_data->sub.below_list_pending, ec);
epc->comp_data->sub.below_list = eina_list_append(epc->comp_data->sub.below_list, ec);
epc->comp_data->sub.list_changed = EINA_TRUE;