Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
if (sd->parent) return (Ecore_Window)elm_win_xwindow_get(sd->parent);
#endif
}
+ else if (engine_name &&
+ ((!strcmp(engine_name, ELM_OPENGL_COCOA)) ||
+ (!strcmp(engine_name, "gl_cocoa"))))
+ {
+#ifdef HAVE_ELEMENTARY_COCOA
+ if (sd->cocoa.win) return (Ecore_Window)(sd->cocoa.win);
+ if (sd->parent)
+ {
+ Ecore_Cocoa_Window *pwin;
+ eo_do(sd->parent, pwin = elm_obj_win_cocoa_window_get());
+ return (Ecore_Window)pwin;
+ }
+#endif
+ }
return 0;
}