// Set preffered rotation
OrientationStatus status = pImplManager->GetOrientationStatus(__mode);
+ SysLog(NID_UI, "[Window Manager Rotation] Update : __mode(%d) -> status(%d)", __mode, status);
if (__updateStatus == true)
{
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;
}
}
default:
break;
}
+
+ // [Ownee]
+ // 1. ActivateWindow
+ // 2. SetOwner
+ // 3. SetRotation
+
+ _ControlImpl* pImpl = _ControlImpl::GetInstance(__publicControl);
+ if (!pImpl)
+ {
+ return;
+ }
+
+ int owneeCount = pImpl->GetCore().GetOwneeCount();
+ for (int i = 0; i < owneeCount; i++)
+ {
+ _Window* pOwnee = pImpl->GetCore().GetOwnee(i);
+ if (pOwnee)
+ {
+ pEcoreEvas->SetOwner(*pOwnee, pImpl->GetCore());
+ }
+ }
+
+ _Control* pParent = pImpl->GetCore().GetParent();
+ if (pParent)
+ {
+ int owneeCount = pParent->GetOwneeCount();
+ for (int i = 0; i < owneeCount; i++)
+ {
+ _Window* pOwnee = pParent->GetOwnee(i);
+ if (pOwnee)
+ {
+ pEcoreEvas->SetOwner(*pOwnee, *pParent);
+ }
+ }
+ }
}
#endif