Revert "[Tizen] Modify ecore_wl2_window_geometry_set() with window rotation angle"
authorJoogab Yun <joogab.yun@samsung.com>
Mon, 19 Apr 2021 07:22:54 +0000 (16:22 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Mon, 19 Apr 2021 07:22:54 +0000 (16:22 +0900)
This reverts commit f0b923f9a489b4b8a56c31f43fe4784080ae527e.

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

index 4c91c35..7d923b6 100644 (file)
@@ -1661,17 +1661,7 @@ void WindowBaseEcoreWl2::Show()
 {
   if(!mVisible)
   {
-    // Ecore-wl2 has the original window size
-    // and he always sends the window rotation event with the swapped size.
-    // So, to restore, dali should set the reswapped size(original window size) to ecore-wl2 for restoring.
-    if(mWindowRotationAngle == 0 || mWindowRotationAngle == 180)
-    {
-      ecore_wl2_window_geometry_set(mEcoreWindow, mWindowPositionSize.x, mWindowPositionSize.y, mWindowPositionSize.width, mWindowPositionSize.height);
-    }
-    else
-    {
-      ecore_wl2_window_geometry_set(mEcoreWindow, mWindowPositionSize.x, mWindowPositionSize.y, mWindowPositionSize.height, mWindowPositionSize.width);
-    }
+    ecore_wl2_window_geometry_set(mEcoreWindow, mWindowPositionSize.x, mWindowPositionSize.y, mWindowPositionSize.width, mWindowPositionSize.height);
   }
   mVisible = true;