// Dali::Internal::Adaptor::Adaptor::Pause
void Adaptor::Pause()
{
+ DALI_LOG_RELEASE_INFO( "Adaptor::Pause: mState [%d]\n", mState );
+
// Only pause the adaptor if we're actually running.
if( RUNNING == mState )
{
// Dali::Internal::Adaptor::Adaptor::Resume
void Adaptor::Resume()
{
+ DALI_LOG_RELEASE_INFO( "Adaptor::Resume: mState [%d]\n", mState );
+
// Only resume the adaptor if we are in the suspended state.
if( PAUSED == mState )
{
void Adaptor::OnWindowShown()
{
+ DALI_LOG_RELEASE_INFO( "Adaptor::OnWindowShown: mState [%d]\n", mState );
+
if ( PAUSED_WHILE_HIDDEN == mState )
{
// Adaptor can now be resumed
void Adaptor::OnWindowHidden()
{
+ DALI_LOG_RELEASE_INFO( "Adaptor::OnWindowHidden: mState [%d]\n", mState );
+
if ( RUNNING == mState )
{
Pause();
void Application::OnPause()
{
+ DALI_LOG_RELEASE_INFO( "Application::OnPause\n" );
+
// A DALi app should handle Pause/Resume events.
// DALi just delivers the framework Pause event to the application, but not actually pause DALi core.
// Pausing DALi core only occurs on the Window Hidden framework event
void Application::OnResume()
{
+ DALI_LOG_RELEASE_INFO( "Application::OnResume\n" );
+
// Emit the signal first so the application can queue any messages before we do an update/render
// This ensures we do not just redraw the last frame before pausing if that's not required
Dali::Application application(this);
{
observer->OnWindowHidden();
}
- DALI_LOG_RELEASE_INFO( "Window (%p) Iconified\n", handler->mEcoreWindow);
+ DALI_LOG_RELEASE_INFO( "EcoreEventWindowIconifyStateChanged: Iconified, mVisible [%d]\n", handler->mWindow->mVisible );
}
else
{
{
observer->OnWindowShown();
}
- DALI_LOG_RELEASE_INFO( "Window (%p) Deiconified\n", handler->mEcoreWindow );
+ DALI_LOG_RELEASE_INFO( "EcoreEventWindowIconifyStateChanged: Deiconified, mVisible [%d]\n", handler->mWindow->mVisible );
}
handled = ECORE_CALLBACK_DONE;
}
mVisible = true;
ecore_wl_window_show( mEventHandler->mEcoreWindow );
+ DALI_LOG_RELEASE_INFO( "Window::Show: mIconified [%d]\n", mIconified );
+
if( !mIconified )
{
if( mAdaptor )
{
WindowVisibilityObserver* observer( mAdaptor );
observer->OnWindowShown();
- DALI_LOG_RELEASE_INFO( "Window (%p) ::Show() \n", mEventHandler->mEcoreWindow);
}
}
}
mVisible = false;
ecore_wl_window_hide( mEventHandler->mEcoreWindow );
+ DALI_LOG_RELEASE_INFO( "Window::Hide: mIconified [%d]\n", mIconified );
+
if( !mIconified )
{
if( mAdaptor )
{
WindowVisibilityObserver* observer( mAdaptor );
observer->OnWindowHidden();
- DALI_LOG_RELEASE_INFO( "Window (%p) ::Hide() \n", mEventHandler->mEcoreWindow);
}
}
}