Add ecore_wl2_window_geometry_set() in tizen window backend 80/275580/1
authorWonsik Jung <sidein@samsung.com>
Thu, 26 May 2022 11:30:24 +0000 (20:30 +0900)
committerWonsik Jung <sidein@samsung.com>
Thu, 26 May 2022 11:30:24 +0000 (20:30 +0900)
Add ecore_wl2_window_geometry_set() when configure notification event occurs.
Because configure notificaiton event is emitted by display server and dali should notify that to ecore-wl2 layer.
In addition, display server and ecore-wl2 layer are separated.

Change-Id: I31dbf03e59afed9556d98189e60b5b3540f71857

dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp

index d09451c..9bc72f5 100644 (file)
@@ -1030,6 +1030,8 @@ void WindowBaseEcoreWl2::OnConfiguration(void* data, int type, void* event)
       mWindowPositionSize.height = newHeight;
       DALI_LOG_RELEASE_INFO("Update position & resize signal by server, current angle [%d] x[%d] y[%d] w[%d] h[%d]\n", mWindowRotationAngle, mWindowPositionSize.x, mWindowPositionSize.y, mWindowPositionSize.width, mWindowPositionSize.height);
 
+      ecore_wl2_window_geometry_set(mEcoreWindow, mWindowPositionSize.x, mWindowPositionSize.y, mWindowPositionSize.width, mWindowPositionSize.height);
+
       Dali::PositionSize newPositionSize = RecalculatePositionSizeToCurrentOrientation(mWindowPositionSize);
       DALI_LOG_RELEASE_INFO("emit signal to update window's position and size, x[%d] y[%d] w[%d] h[%d]\n", newPositionSize.x, newPositionSize.y, newPositionSize.width, newPositionSize.height);
       mUpdatePositionSizeSignal.Emit(newPositionSize);