[Tizen] Apply to set window user.geometry. 55/325455/1 tizen_9.0
authorWonsik Jung <sidein@samsung.com>
Tue, 10 Jun 2025 09:36:29 +0000 (18:36 +0900)
committerWonsik Jung <sidein@samsung.com>
Tue, 10 Jun 2025 09:37:58 +0000 (18:37 +0900)
Apply to set window user.geometry when application uses pre-initiailized.

Change-Id: I17a81b35a624c66a4a3e134890d6dae41a5a9665

dali/internal/adaptor/common/application-impl.cpp
dali/internal/window-system/common/window-impl.h

index 0b9bb6a4843a75fcbef87c33767ae7bfd5b74fe2..8f15ecb68def29c0346611c900e43eb3609ba7e5 100644 (file)
@@ -212,6 +212,15 @@ Application::~Application()
 void Application::StoreWindowPositionSize(PositionSize positionSize)
 {
   mWindowPositionSize = positionSize;
+  DALI_LOG_RELEASE_INFO("Application::StoreWindowPositionSize, (%d,%d)(%d x %d)\n", mWindowPositionSize.x, mWindowPositionSize.y, mWindowPositionSize.width, mWindowPositionSize.height);
+  if(mMainWindow)
+  {
+    if(mWindowPositionSize != PositionSize(0, 0, 0, 0))
+    {
+      Dali::Internal::Adaptor::Window& windowImpl = Dali::GetImplementation(mMainWindow);
+      windowImpl.SetUserGeometryPolicy();
+    }
+  }
 }
 
 void Application::StoreFrontBufferRendering(bool enable)
index 3c31b00ab00f07a9472db3adb6a352c15c4ff185..3c97540cea80a825e0874273313b3da2594f554b 100644 (file)
@@ -637,6 +637,15 @@ public: // Dali::Internal::Adaptor::SceneHolder
    */
   WindowBlurInfo GetBlur() const;
 
+  /**
+   * @brief Sets user geometry flag when window's geometry is changed.
+   *
+   * Window is created with screen size or not.
+   * If window is created with screen size or the geometry is changed by user,
+   * client should inform to server setting user.geometry flag
+   */
+  void SetUserGeometryPolicy();
+
 private:
   /**
    * @brief Enumeration for orietation mode.
@@ -827,15 +836,6 @@ private:
    */
   bool IsOrientationAvailable(WindowOrientation orientation) const;
 
-  /**
-   * @brief Sets user geometry flag when window's geometry is changed.
-   *
-   * Window is created with screen size or not.
-   * If window is created with screen size or the geometry is changed by user,
-   * client should inform to server setting user.geometry flag
-   */
-  void SetUserGeometryPolicy();
-
   /**
    * @brief Called when window insets are changed by appearing or disappearing indicator, virtual keyboard, or clipboard.
    *