Fix multiwindow base 43/134143/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 15 Jun 2017 03:37:53 +0000 (12:37 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 15 Jun 2017 03:37:53 +0000 (12:37 +0900)
- Move adding ecore event to on_create function

Change-Id: I7502ef84d4a7c5aa773f102060564adf5230fce8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/multiwindow_base/appcore_multiwindow_base.c

index 89f184b..66cfcf0 100644 (file)
@@ -78,12 +78,6 @@ EXPORT_API int appcore_multiwindow_base_init(appcore_multiwindow_base_ops ops, i
        _appcore_mw_context.argc = argc;
        _appcore_mw_context.argv = argv;
 
-       _appcore_mw_context.hshow = ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_SHOW, __stub_show_cb, NULL);
-       _appcore_mw_context.hhide = ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_HIDE, __stub_hide_cb, NULL);
-       _appcore_mw_context.hvchange = ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_VISIBILITY_CHANGE,
-                               __stub_visibility_cb, NULL);
-       _appcore_mw_context.hlower = ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_LOWER, __stub_lower_cb, NULL);
-
        return appcore_base_init(ops.base, argc, argv, data);
 }
 
@@ -242,6 +236,12 @@ EXPORT_API int appcore_multiwindow_base_on_create(void)
 {
        appcore_base_on_create();
 
+       _appcore_mw_context.hshow = ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_SHOW, __stub_show_cb, NULL);
+       _appcore_mw_context.hhide = ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_HIDE, __stub_hide_cb, NULL);
+       _appcore_mw_context.hvchange = ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_VISIBILITY_CHANGE,
+                       __stub_visibility_cb, NULL);
+       _appcore_mw_context.hlower = ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_LOWER, __stub_lower_cb, NULL);
+
        return 0;
 }