fix orientation
authorwoo <s-w.woo@samsung.com>
Sun, 31 Mar 2013 02:58:08 +0000 (11:58 +0900)
committerwoo <s-w.woo@samsung.com>
Sun, 31 Mar 2013 02:58:08 +0000 (11:58 +0900)
Change-Id: Id24ca619827e6ecc7d17599b7e00e7882df6331f
Signed-off-by: woo <s-w.woo@samsung.com>
src/ui/FUi_OrientationAgent.cpp [changed mode: 0644->0755]
src/ui/FUi_PublicOrientationEvent.cpp [changed mode: 0644->0755]
src/ui/FUi_Window.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 35dd1a7..9a245e1
@@ -484,16 +484,6 @@ _OrientationAgent::FireOrientationEvent(void)
                IEventArg* pArg = _PublicOrientationEvent::CreateOrientationEventArgN(*__pPublicEvent->GetSource(), __status);
                __pPublicEvent->Fire(*pArg);
 
-               _ControlImpl* pImpl = _ControlImpl::GetInstance(__publicControl);
-               if (pImpl)
-               {
-                       _Window* pWindow = pImpl->GetCore().GetRootWindow();
-                       if (pWindow)
-                       {
-                               SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x] Fire the public orientation event..", pWindow->GetNativeHandle());
-                       }
-               }
-
                __updateStatus = true;
        }
 }
old mode 100644 (file)
new mode 100755 (executable)
index 2ed7c47..19ea94a
@@ -132,6 +132,8 @@ _PublicOrientationEvent::FireImpl(IEventListener& listener, const IEventArg& arg
        const _PublicOrientationEventArg* pArg = dynamic_cast <const _PublicOrientationEventArg*>(&arg);
        SysTryReturnVoidResult(NID_UI, pArg, E_INVALID_ARG, "[E_INVALID_ARG] A specified input parameter is invalid.");
 
+       SysLog(NID_UI, "[Window Manager Rotation] Fire the public orientation event with %d -> 0x%x", pArg->GetOrientationStatus(), __pSource);
+
        pEventListener->OnOrientationChanged(*__pSource, (OrientationStatus)(pArg->GetOrientationStatus()));
 
        SetLastResult(E_SUCCESS);
old mode 100644 (file)
new mode 100755 (executable)
index bc22603..d818ba6
@@ -591,6 +591,8 @@ _Window::OnWindowStateChanged(void)
        ChangeLayout(controlOrientation);
 
        pEcoreEvas->RotateWindow(*this, __rotation);
+
+       Invalidate(true);
 }
 
 void