Fix Rotation
authorChoi Munseok <ms47.choi@samsung.com>
Thu, 4 Apr 2013 09:12:16 +0000 (18:12 +0900)
committerChoi Munseok <ms47.choi@samsung.com>
Thu, 4 Apr 2013 09:12:16 +0000 (18:12 +0900)
Change-Id: I43b11b2128f6d07f1b805bfcfdf70e2478019782
Signed-off-by: Choi Munseok <ms47.choi@samsung.com>
src/ui/FUi_EcoreEvas.cpp

index a35250e..82218c4 100644 (file)
@@ -1363,6 +1363,8 @@ _EcoreEvas::SetOwner(NativeWindowHandle ownee, NativeWindowHandle owner)
 {
        ecore_x_icccm_transient_for_unset(ownee);
        ecore_x_icccm_transient_for_set(ownee, owner);
+
+       SysLog(NID_UI, "SetZOrderGroup");
 }
 
 void
@@ -2238,8 +2240,18 @@ _EcoreEvas::SetOwner(const _Window& ownee, const _Control& owner)
        Ecore_X_Window ownerWin = (Ecore_X_Window) ecore_evas_window_get(pOwnerLayer->GetEcoreEvas());
        Ecore_X_Window owneeWin = (Ecore_X_Window) ecore_evas_window_get(pOwneeLayer->GetEcoreEvas());
 
-       ecore_x_icccm_transient_for_unset(owneeWin);
-       ecore_x_icccm_transient_for_set(owneeWin, ownerWin);
+       Ecore_X_Window_Type type;
+       ecore_x_netwm_window_type_get(owneeWin, &type);
+       if (type == ECORE_X_WINDOW_TYPE_NORMAL)
+       {
+               SysLog(NID_UI, "SetZOrderGroup : 0x%x, NORMAL", owneeWin);
+               ecore_x_icccm_transient_for_unset(owneeWin);
+               ecore_x_icccm_transient_for_set(owneeWin, ownerWin);
+       }
+       else
+       {
+               SysLog(NID_UI, "SetZOrderGroup : 0x%x, NOT NORMAL", owneeWin);
+       }
 
 #if !defined(WINDOW_BASE_ROTATE)
        int rotation = GetWindowRotation(*pOwnerWindow);