When window rotaton event occurs, the window's size in rotation evnet value is initialized with 0 value.
To fix that, if window's size in rotation event value is zero, the value should be modified using DALi local data.
In addition, fix the one human error.
Change-Id: I03330dcb491b70e6b3abe1e56a9043b859adb215
RotationEvent rotationEvent;
rotationEvent.angle = ev->angle;
rotationEvent.winResize = 0;
RotationEvent rotationEvent;
rotationEvent.angle = ev->angle;
rotationEvent.winResize = 0;
+
+ if(ev->w == 0 || ev->h ==0)
+ {
+ // Use previous client side window's size.
+ if(mWindowRotationAngle == 90 || mWindowRotationAngle == 270)
+ {
+ ev->w = mWindowPositionSize.height;
+ ev->h = mWindowPositionSize.width;
+ }
+ else
+ {
+ ev->w = mWindowPositionSize.width;
+ ev->h = mWindowPositionSize.height;
+ }
+ }
+
mWindowRotationAngle = ev->angle;
if(ev->angle == 0 || ev->angle == 180)
mWindowRotationAngle = ev->angle;
if(ev->angle == 0 || ev->angle == 180)
if(!mNotificationLevelChangeDone)
{
DALI_LOG_INFO(gWindowBaseLogFilter, Debug::Verbose, "WindowBaseEcoreWl2::SetNotificationLevel: Level change is failed [%d, %d]\n", level, mNotificationChangeState);
if(!mNotificationLevelChangeDone)
{
DALI_LOG_INFO(gWindowBaseLogFilter, Debug::Verbose, "WindowBaseEcoreWl2::SetNotificationLevel: Level change is failed [%d, %d]\n", level, mNotificationChangeState);
- Dali::WindowOperationResult::UNKNOWN_ERROR;
+ return Dali::WindowOperationResult::UNKNOWN_ERROR;
}
else if(mNotificationChangeState == TIZEN_POLICY_ERROR_STATE_PERMISSION_DENIED)
{
}
else if(mNotificationChangeState == TIZEN_POLICY_ERROR_STATE_PERMISSION_DENIED)
{