win: add Cocoa support for elm_win_window_id_get() API

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Jean Guyomarc'h 2015-10-13 16:40:49 +02:00 committed by Cedric BAIL
parent 8c8e811b29
commit 9c8dcc5b7d
1 changed files with 14 additions and 0 deletions

View File

@ -5551,6 +5551,20 @@ _elm_win_window_id_get(Eo *obj EINA_UNUSED, Elm_Win_Data *sd)
_internal_elm_win_xwindow_get(sd);
if (sd->x.xwin) return (Ecore_Window)sd->x.xwin;
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
}