From 94046afc220878c2567ee92e9a24f2101af781b1 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Mon, 20 Feb 2017 18:14:07 +0900 Subject: [PATCH] Add exception handlings about app group Change-Id: Ia6a6d4e8d7b5a9f75172b24a7d70225514277a20 Signed-off-by: Hwankyu Jhun --- src/appcore-efl.c | 4 ++-- src/ui_base/appcore_ui_base.c | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/appcore-efl.c b/src/appcore-efl.c index aca08fe..46294a1 100644 --- a/src/appcore-efl.c +++ b/src/appcore-efl.c @@ -634,8 +634,8 @@ static Eina_Bool __show_cb(void *data, int type, void *event) else __update_win((unsigned int)ev->win, (unsigned int)ev->data[0], FALSE); - - appcore_group_attach(); + if (ev->data[0] != 0) + appcore_group_attach(); return ECORE_CALLBACK_RENEW; } diff --git a/src/ui_base/appcore_ui_base.c b/src/ui_base/appcore_ui_base.c index baf80cd..b681d78 100644 --- a/src/ui_base/appcore_ui_base.c +++ b/src/ui_base/appcore_ui_base.c @@ -599,7 +599,9 @@ EXPORT_API void appcore_ui_base_window_on_show(int type, void *event) __add_win((unsigned int)ev->win, (unsigned int)ev->data[0]); else __update_win((unsigned int)ev->win, (unsigned int)ev->data[0], FALSE); - __group_attach(); + + if (ev->data[0] != 0) + __group_attach(); } static bool __check_visible(void) -- 2.7.4