Apply to set window user.geometry. 78/325278/2
authorWonsik Jung <sidein@samsung.com>
Fri, 6 Jun 2025 05:28:58 +0000 (14:28 +0900)
committerWonsik Jung <sidein@samsung.com>
Fri, 6 Jun 2025 05:32:31 +0000 (14:32 +0900)
Apply to set window user.geometry when application uses pre-initiailized.

Change-Id: Id719b6884c3c0d5836e6a83a9d5e90ea2e68b32f

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

index 3f6ed0d4bf2e801fa79f93b2abe65ca11a751b0b..4ad2903c0e79c68a6bc070c5d8a9e2fb165897c7 100644 (file)
@@ -213,6 +213,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 bb7311274f689cf61f3f5919281b4b29d7217935..1e72f1766ea71dc831b0d05e8e9c9851b36b7ceb 100644 (file)
@@ -658,6 +658,15 @@ public: // It is only for window-impl. Need not public for the others.
    */
   int GetCurrentScreenRotationAngle() 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.
@@ -848,15 +857,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.
    *