Showing window after adaptor is initialized 35/254935/2
authorhuiyu.eun <huiyu.eun@samsung.com>
Thu, 11 Mar 2021 00:39:27 +0000 (09:39 +0900)
committerhuiyu.eun <huiyu.eun@samsung.com>
Thu, 11 Mar 2021 02:42:54 +0000 (11:42 +0900)
The Preinitialization creates a window in advance.
If you call the 'Show' before creating the adaptor, the application cannot know the app resource id.
The show must be called after the adaptor is initialized.

Change-Id: I679a984ebb9fa5963ae8a245af4cab473902cea3
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
dali/internal/window-system/common/window-impl.cpp

index f3a74fe..03fec2f 100644 (file)
@@ -143,8 +143,6 @@ void Window::Initialize(Any surface, const PositionSize& positionSize, const std
 
   SetClass(name, className);
 
-  mWindowSurface->Map();
-
   mOrientation = Orientation::New(this);
 
   // Get OrientationMode
@@ -172,7 +170,8 @@ void Window::OnAdaptorSet(Dali::Adaptor& adaptor)
   auto accessible = Accessibility::Accessible::Get(v, true);
   bridge->AddTopLevelWindow(accessible);
 
-  //FIXME: line below is temporary solution for missing "activate" signal and should be removed
+  // If you call the 'Show' before creating the adaptor, the application cannot know the app resource id.
+  // The show must be called after the adaptor is initialized.
   Show();
 }