From ca625aa323fcf3c40a660cf693fd30d1d737f13a Mon Sep 17 00:00:00 2001 From: Jiyoun Park Date: Mon, 31 Jul 2017 15:16:38 +0900 Subject: [PATCH] efl_ui_win: add EFL_UI_WIN_SOCKET_IMAGE type check elm_win_socket_listen api only work for EFL_UI_WIN_SOCKET_IMAGE type window. So it is better to add type check code. --- src/lib/elementary/efl_ui_win.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index b855857..47881cd 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c @@ -6458,6 +6458,7 @@ EOLIAN static Eina_Bool _efl_ui_win_socket_listen(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, const char *svcname, int svcnum, Eina_Bool svcsys) { if (!sd->ee) return EINA_FALSE; + if (sd->type != EFL_UI_WIN_SOCKET_IMAGE) return EINA_FALSE; if (!ecore_evas_extn_socket_listen(sd->ee, svcname, svcnum, svcsys)) return EINA_FALSE; -- 2.7.4