There is a requirement to get ecore_wl2_window from
given ecore_wl2_subsurface.
Change-Id: Idffef92b50b4edc474ae53cb7df5ffc65b26f615
EAPI void *ecore_wl2_subsurface_native_surface_get(Ecore_Wl2_Subsurface *subsurface);
/**
+ * @brief Get parent window for this subsurface
+ *
+ * @param subsurface the subsurface
+ *
+ * @return the Ecore_Wl2_Window associated with this subsurface, or NULL on failure.
+ *
+ * @ingroup Ecore_Wl2_Subsurface_Group
+ */
+EAPI Ecore_Wl2_Window *ecore_wl2_subsurface_window_get(Ecore_Wl2_Subsurface *subsurface);
+
+/**
* @brief Place subsurface on layer above a reference subsurface
*
* Moves the subsurface to just above the reference subsurface,
return subsurface->wl.surface;
}
+EAPI Ecore_Wl2_Window *
+ecore_wl2_subsurface_window_get(Ecore_Wl2_Subsurface *subsurface)
+{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(subsurface, NULL);
+ return subsurface->parent;
+}
+
EAPI Eina_Bool
ecore_wl2_subsurface_video_surface_destination_set(Ecore_Wl2_Subsurface *subsurface, int x, int y, int w, int h)
{