Ecore_X_Window targetWin = pE->win;
_Frame* pFrame = static_cast<_Frame*>(pCurFrame);
Ecore_X_Window win = (Ecore_X_Window)pFrame->GetNativeHandle();
+ Dimension screenSize = pControlManager->GetScreenSize();
+
+#if defined(_SPLIT_WINDOW_)
+ if (win != targetWin)
+ {
+ return ECORE_CALLBACK_PASS_ON;
+ }
+
+ if (pFrame->GetShowMode() == FRAME_SHOW_MODE_FULL_SCREEN)
+ {
+ Dimension winSize = _CoordinateSystemUtils::InverseTransform(Dimension(pE->w, pE->h));
+ if (winSize == screenSize)
+ {
+ return ECORE_CALLBACK_PASS_ON;
+ }
+ else
+ {
+ pFrame->SetSplitWindowEnabled(true);
+ }
+ }
+#else
if ((pFrame->GetShowMode() == FRAME_SHOW_MODE_FULL_SCREEN) || (win != targetWin))
{
return ECORE_CALLBACK_PASS_ON;
}
+#endif
Rectangle winBounds = _CoordinateSystemUtils::InverseTransform(Rectangle(pE->x, pE->y, pE->w, pE->h));
Rectangle newBounds(winBounds.x, winBounds.y, winBounds.width, winBounds.height);
newBounds.height = winBounds.width;
}
- Dimension screenSize = pControlManager->GetScreenSize();
switch (rotation)
{
case 270:
pFrame->SetBounds(newBounds);
pFrame->SetChangedPositionByUser(isChanged);
pFrame->SetChangingBoundsEnabled(true);
+
+#if defined(_SPLIT_WINDOW_)
+ Rectangle frameBounds = pFrame->GetBounds();
+ Rectangle frameClientBounds = pFrame->GetClientBounds();
+ Rectangle frameAbsoluteBounds = pFrame->GetAbsoluteBounds();
+
+ SysLog(NID_UI, "[WM ROTATION]<S>[WIN 0x%x] FRAME bounds(%d %d %d %d) cbounds(%d %d %d %d) abounds(%d %d %d %d)",
+ win, frameBounds.x, frameBounds.y, frameBounds.width, frameBounds.height,
+ frameClientBounds.x, frameClientBounds.y, frameClientBounds.width, frameClientBounds.height,
+ frameAbsoluteBounds.x, frameAbsoluteBounds.y, frameAbsoluteBounds.width, frameAbsoluteBounds.height);
+
+ int formCount = pFrame->GetChildCount();
+ for (int i = 0 ; i < formCount ; i++)
+ {
+ _Control* pForm = pFrame->GetChild(i);
+
+ Rectangle formBounds = pForm->GetBounds();
+ Rectangle formClientBounds = pForm->GetClientBounds();
+ Rectangle formAbsoluteBounds = pForm->GetAbsoluteBounds();
+
+ SysLog(NID_UI, "[WM ROTATION]<S> FORM bounds(%d %d %d %d) cbounds(%d %d %d %d) abounds(%d %d %d %d)",
+ formBounds.x, formBounds.y, formBounds.width, formBounds.height,
+ formClientBounds.x, formClientBounds.y, formClientBounds.width, formClientBounds.height,
+ formAbsoluteBounds.x, formAbsoluteBounds.y, formAbsoluteBounds.width, formAbsoluteBounds.height);
+ }
+#endif
}
return ECORE_CALLBACK_PASS_ON;
pFormImpl->UpdateOrientation();
}
+#if defined(_SPLIT_WINDOW_)
+ Rectangle frameBounds = GetBounds();
+ Rectangle frameClientBounds = GetClientBounds();
+ Rectangle frameAbsoluteBounds = GetAbsoluteBounds();
+
+ SysLog(NID_UI, "[WM ROTATION]<S>[WIN 0x%x] FRAME bounds(%d %d %d %d) cbounds(%d %d %d %d) abounds(%d %d %d %d)",
+ GetNativeHandle(),
+ frameBounds.x, frameBounds.y, frameBounds.width, frameBounds.height,
+ frameClientBounds.x, frameClientBounds.y, frameClientBounds.width, frameClientBounds.height,
+ frameAbsoluteBounds.x, frameAbsoluteBounds.y, frameAbsoluteBounds.width, frameAbsoluteBounds.height);
+
+ int formCount = GetChildCount();
+ for (int i = 0 ; i < formCount ; i++)
+ {
+ _Control* pForm = GetChild(i);
+
+ Rectangle formBounds = pForm->GetBounds();
+ Rectangle formClientBounds = pForm->GetClientBounds();
+ Rectangle formAbsoluteBounds = pForm->GetAbsoluteBounds();
+
+ SysLog(NID_UI, "[WM ROTATION]<S> FORM bounds(%d %d %d %d) cbounds(%d %d %d %d) abounds(%d %d %d %d)",
+ formBounds.x, formBounds.y, formBounds.width, formBounds.height,
+ formClientBounds.x, formClientBounds.y, formClientBounds.width, formClientBounds.height,
+ formAbsoluteBounds.x, formAbsoluteBounds.y, formAbsoluteBounds.width, formAbsoluteBounds.height);
+ }
+#endif
+
return;
}
}