summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>2015-10-13 16:40:49 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-12-03 11:05:58 -0800
commitb12b2a4f379f406e659fc9462e6834c294fb0fff (patch)
tree65c025fe312dc43fc58b8b6e074803c0664bc635
parent8b9fcd6e610984670242af2a73b17a23b4143079 (diff)
win: add Cocoa support for elm_win_window_id_get() API
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/elm_win.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index 695991be3..2bf97e28a 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -5553,6 +5553,20 @@ _elm_win_window_id_get(Eo *obj EINA_UNUSED, Elm_Win_Data *sd)
5553 if (sd->parent) return (Ecore_Window)elm_win_xwindow_get(sd->parent); 5553 if (sd->parent) return (Ecore_Window)elm_win_xwindow_get(sd->parent);
5554#endif 5554#endif
5555 } 5555 }
5556 else if (engine_name &&
5557 ((!strcmp(engine_name, ELM_OPENGL_COCOA)) ||
5558 (!strcmp(engine_name, "gl_cocoa"))))
5559 {
5560#ifdef HAVE_ELEMENTARY_COCOA
5561 if (sd->cocoa.win) return (Ecore_Window)(sd->cocoa.win);
5562 if (sd->parent)
5563 {
5564 Ecore_Cocoa_Window *pwin;
5565 eo_do(sd->parent, pwin = elm_obj_win_cocoa_window_get());
5566 return (Ecore_Window)pwin;
5567 }
5568#endif
5569 }
5556 5570
5557 return 0; 5571 return 0;
5558} 5572}