From 28566f57239e172a146d7c633824f8af5989520e Mon Sep 17 00:00:00 2001 From: JongHeon Choi Date: Thu, 12 May 2016 10:15:26 +0900 Subject: [PATCH] Hide unseted evas object to avoid focus and event callback problem --- runtime/browser/native_window.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runtime/browser/native_window.cc b/runtime/browser/native_window.cc index da84fab..97fb15b 100755 --- a/runtime/browser/native_window.cc +++ b/runtime/browser/native_window.cc @@ -130,7 +130,10 @@ void NativeWindow::SetContent(Evas_Object* content) { // issue elm_object_part_content_unset() on it first. evas_object_show(content); - elm_object_part_content_unset(layout_, "elm.swallow.content"); + + // Hide unseted evas object to avoid focus and event callback problem. + evas_object_hide( + elm_object_part_content_unset(layout_, "elm.swallow.content")); elm_object_part_content_set(layout_, "elm.swallow.content", content); content_ = content; -- 2.7.4