fix the bug when window is resized by display server 87/277687/1
authorWonsik Jung <sidein@samsung.com>
Tue, 12 Jul 2022 06:56:34 +0000 (15:56 +0900)
committerWonsik Jung <sidein@samsung.com>
Tue, 12 Jul 2022 06:56:34 +0000 (15:56 +0900)
This patch is to fix the bug when window is resized by display server.
If window is resized, the internal window's size should be updated.
The internal window size is used to calcurate the touch coordiantes.

Change-Id: I9bf06615be9436c2854d9e16eb1721114ba28529

dali/internal/window-system/common/window-impl.cpp

index fa8c7c1..f298a76 100644 (file)
@@ -884,6 +884,9 @@ void Window::OnUpdatePositionSize(Dali::PositionSize& positionSize)
   {
     Uint16Pair newSize(newRect.width, newRect.height);
 
+    mWindowWidth   = newRect.width;
+    mWindowHeight  = newRect.height;
+
     SurfaceResized();
 
     mAdaptor->SurfaceResizePrepare(mSurface.get(), newSize);