Fix the Rotation
authorChoi Munseok <ms47.choi@samsung.com>
Mon, 27 May 2013 00:23:39 +0000 (09:23 +0900)
committerChoi Munseok <ms47.choi@samsung.com>
Mon, 27 May 2013 00:23:39 +0000 (09:23 +0900)
Change-Id: I41119eb6be5f68ea1efa14531a252906f7258e2a
Signed-off-by: Choi Munseok <ms47.choi@samsung.com>
src/ui/FUi_OrientationAgent.cpp

index ce6989f..ed7b45f 100644 (file)
@@ -443,7 +443,10 @@ _OrientationAgent::FireEvent(OrientationStatus status, bool callback)
                                pOwnee->ChangeLayout(coreOrientation);
                        }
 
-                       pEcoreEvas->SetOwner(*pOwnee, pImpl->GetCore());
+                       if (pOwnee->GetVisibleState() == true)
+                       {
+                               pEcoreEvas->SetOwner(*pOwnee, pImpl->GetCore());
+                       }
                }
        }
 
@@ -461,7 +464,10 @@ _OrientationAgent::FireEvent(OrientationStatus status, bool callback)
                                        pOwnee->ChangeLayout(coreOrientation);
                                }
 
-                               pEcoreEvas->SetOwner(*pOwnee, *pParent);
+                               if (pOwnee->GetVisibleState() == true)
+                               {
+                                       pEcoreEvas->SetOwner(*pOwnee, *pParent);
+                               }
                        }
                }
        }