From d7a004ad4718f55d928ed905aba5d8fe677c65a4 Mon Sep 17 00:00:00 2001 From: Wonsik Jung Date: Tue, 12 Jul 2022 15:56:34 +0900 Subject: [PATCH] fix the bug when window is resized by display server 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dali/internal/window-system/common/window-impl.cpp b/dali/internal/window-system/common/window-impl.cpp index fa8c7c1..f298a76 100644 --- a/dali/internal/window-system/common/window-impl.cpp +++ b/dali/internal/window-system/common/window-impl.cpp @@ -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); -- 2.7.4