From e369dc307d8cb9396c4fbc932626d52878ec29d4 Mon Sep 17 00:00:00 2001 From: Choi Munseok Date: Thu, 4 Apr 2013 18:12:16 +0900 Subject: [PATCH] Fix Rotation Change-Id: I43b11b2128f6d07f1b805bfcfdf70e2478019782 Signed-off-by: Choi Munseok --- src/ui/FUi_EcoreEvas.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/ui/FUi_EcoreEvas.cpp b/src/ui/FUi_EcoreEvas.cpp index a35250e..82218c4 100644 --- a/src/ui/FUi_EcoreEvas.cpp +++ b/src/ui/FUi_EcoreEvas.cpp @@ -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); -- 2.7.4