Fix Ecore Handler 64/274564/4
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 2 May 2022 12:19:47 +0000 (21:19 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 2 May 2022 23:31:53 +0000 (08:31 +0900)
commit20d8eca927909d8c885c95c95453b21cc6d9a0db
tree58b7d78c12c58b109d960a2a5c046ea11ebf83bf
parentcecd32a28a71369fa0333715db870c32b863f6c2
Fix Ecore Handler

Setting Ecore events is separated from Init() method to prevent a crash issue.
If the ecore_wl2_shutdown() is called before app_terminate_cb() call,
the application will be crashed by that. While calling the ecore_wl2_shutdown(),
resources related to the wayland are released.
Currently, the indicator application has crashed when calling
the tzsh_indicator_service_destroy(). Because, it's released by the EcoreHandler::Fini().
The EcoreHandler::SetEvents() and the EcoreHandler::UnsetEvents() are added.

Change-Id: Ic153709518b24e4083688d1ccffb37e44c835a66
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
tizen-cpp/app-core-multi-window-cpp/app_core_multi_window_base.cc
tizen-cpp/app-core-ui-cpp/app_core_ui_base.cc
tizen-cpp/app-core-ui-cpp/wayland_handler_private.cc
tizen-cpp/common/ecore_handler.cc
tizen-cpp/common/ecore_handler.hh