When evas_object_data_get(obj, "E_Client") called, it will return
embedded E_Client instead of original E_Client.
This is to hide details of embedded concept.
Specifically, e_hwc_windows implementation will make a visibile window
list with an embedded E_Client, not a container.
Change-Id: I94c850d262c1357eb28f635b2ec3e97ac37c06ba
{
API_ENTRY EINA_FALSE;
+ E_Comp_Object *embedded_cw;
+
+ embedded_cw = evas_object_smart_data_get(in_obj);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(embedded_cw, EINA_FALSE);
+
+ /* Make it return embedded E_Client so that others doesn't need to know
+ * about details of "embedded" notion.
+ * The current actual purpose behind this is for e_hwc_winodws to build
+ * a visible window list with an embedded E_Client, not with a container
+ * E_Client. */
+ evas_object_data_set(obj, "E_Client", embedded_cw->ec);
+
cw->embedded = EINA_TRUE;
cw->external_content = EINA_TRUE;