Window::SetPosition called WindowRenderSurface::MoveResize.
It caused some issues. For instance when an app calls SetSize and
SetPosition in order in OnCreate() in Application, The window size
isn't resized.
Change-Id: I200951ce4623c8acaa0b5f78b41edfd1563a6189
int32_t newX = position.GetX();
int32_t newY = position.GetY();
- mWindowSurface->MoveResize(PositionSize(newX, newY, oldRect.width, oldRect.height));
+ mWindowSurface->Move(PositionSize(newX, newY, oldRect.width, oldRect.height));
if((oldRect.x != newX) || (oldRect.y != newY))
{
}
}
+void WindowRenderSurface::Move(Dali::PositionSize positionSize)
+{
+ mPositionSize.x = positionSize.x;
+ mPositionSize.y = positionSize.y;
+
+ DALI_LOG_RELEASE_INFO("Update Position by client (%d, %d)\n", positionSize.x, positionSize.y);
+
+ mWindowBase->Move(positionSize);
+}
+
void WindowRenderSurface::MoveResize(Dali::PositionSize positionSize)
{
mPositionSize.x = positionSize.x;
void UpdatePositionSize(Dali::PositionSize positionSize);
/**
+ * @brief Moves the window to the specified position.
+ *
+ * @param positionSize The new position of the window.
+ */
+ void Move(Dali::PositionSize positionSize);
+
+ /**
* @brief This signal is emitted when the output is transformed.
*/
OutputSignalType& OutputTransformedSignal();