From: Wonsik Jung Date: Tue, 12 Jul 2022 06:56:34 +0000 (+0900) Subject: fix the bug when window is resized by display server X-Git-Tag: dali_2.1.31~7^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d7a004ad4718f55d928ed905aba5d8fe677c65a4;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git 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 --- 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);