// INTERNAL HEADERS
#include <dali/internal/window-system/common/window-impl.h>
+#include <dali/internal/window-system/common/window-system.h>
#include <dali/internal/window-system/common/window-render-surface.h>
#include <dali/internal/window-system/ubuntu-x11/ecore-x-types.h>
if( mOwnSurface )
{
ecore_x_window_free( mEcoreWindow );
+
+ WindowSystem::Shutdown();
}
}
// if the surface is empty, create a new one.
if( surfaceId == 0 )
{
+ WindowSystem::Initialize();
+
// we own the surface about to created
mOwnSurface = true;
CreateWindow( positionSize, isTransparent );
ecore_x_netwm_client_active_request( ecore_x_window_root_get( mEcoreWindow ), mEcoreWindow, 1 /* request type, 1:application, 2:pager */, 0 );
}
-void WindowBaseEcoreX::SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations )
+void WindowBaseEcoreX::SetAvailableAnlges( const std::vector< int >& angles )
{
}
-void WindowBaseEcoreX::SetPreferredOrientation( Dali::Window::WindowOrientation orientation )
+void WindowBaseEcoreX::SetPreferredAngle( int angle )
{
}
}
}
-void WindowBaseEcoreX::SetParent( Any parent )
+void WindowBaseEcoreX::SetParent( WindowBase* parentWinBase )
{
- Ecore_X_Window mEcoreParent;
- if ( parent.Empty() == false )
+ Ecore_X_Window ecoreParent = 0;
+ if( parentWinBase )
{
- // check we have a valid type
- DALI_ASSERT_ALWAYS( ( (parent.GetType() == typeid (Ecore_X_Window) ) )
- && "Surface type is invalid" );
-
- if ( parent.GetType() == typeid (Ecore_X_Window) )
- {
- mEcoreParent = AnyCast< Ecore_X_Window >( parent );
- ecore_x_icccm_transient_for_set( mEcoreWindow, mEcoreParent );
- }
- else
- {
- mEcoreParent = 0;
- ecore_x_icccm_transient_for_unset( mEcoreWindow );
- }
+ WindowBaseEcoreX* winBaseEcoreX = static_cast<WindowBaseEcoreX*>( parentWinBase );
+ ecoreParent = winBaseEcoreX->mEcoreWindow;
+ ecore_x_icccm_transient_for_set( mEcoreWindow, ecoreParent );
}
else
{
- mEcoreParent = 0;
+ ecoreParent = 0;
ecore_x_icccm_transient_for_unset( mEcoreWindow );
}
}
-bool WindowBaseEcoreX::IsMatchedWindow( Any window )
+int WindowBaseEcoreX::CreateFrameRenderedSyncFence()
{
- bool ret = false;
- if ( window.Empty() == false )
- {
- // check we have a valid type
- DALI_ASSERT_ALWAYS( ( (window.GetType() == typeid (Ecore_X_Window) ) ) && "Surface type is invalid" );
- if ( AnyCast< Ecore_X_Window >( window ) == mEcoreWindow )
- {
- ret = true;
- }
- }
- return ret;
+ return -1;
+}
+
+int WindowBaseEcoreX::CreateFramePresentedSyncFence()
+{
+ return -1;
}
} // namespace Adaptor