X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=adaptors%2Fx11%2Fwindow-impl-x.cpp;h=9f7b1584388e6ed06854454718bf2afbcbfd275e;hb=49c97a2e97f05007085fc43739b1196f054d63a1;hp=aac604c626135274f2a46fdb013e74659367be5c;hpb=6c48d965d1eca249b71488ab4193bf6dcdd74bcd;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/adaptors/x11/window-impl-x.cpp b/adaptors/x11/window-impl-x.cpp index aac604c..9f7b158 100644 --- a/adaptors/x11/window-impl-x.cpp +++ b/adaptors/x11/window-impl-x.cpp @@ -75,11 +75,13 @@ struct Window::EventHandler } DALI_ASSERT_ALWAYS( mEcoreWindow != 0 && "There is no ecore x window"); +#ifndef DALI_PROFILE_UBUNTU // set property on window to get deiconify approve client message unsigned int tmp = 1; ecore_x_window_prop_card32_set(mEcoreWindow, ECORE_X_ATOM_E_DEICONIFY_APPROVE, &tmp, 1); +#endif // DALI_PROFILE_UBUNTU } /** @@ -156,6 +158,7 @@ struct Window::EventHandler static Eina_Bool EcoreEventClientMessage( void* data, int type, void* event ) { Eina_Bool handled( ECORE_CALLBACK_PASS_ON ); +#ifndef DALI_PROFILE_UBUNTU Ecore_X_Event_Client_Message* clientMessageEvent( (Ecore_X_Event_Client_Message*)event ); EventHandler* handler( (EventHandler*)data ); @@ -180,6 +183,7 @@ struct Window::EventHandler } } } +#endif // DALI_PROFILE_UBUNTU return handled; } @@ -241,23 +245,6 @@ void Window::SetIndicatorStyle( Dali::Window::IndicatorStyle style ) mIndicatorStyle = style; } -void Window::ShowIndicator( bool show ) -{ - DALI_LOG_TRACE_METHOD_FMT( gWindowLogFilter, "%s\n", show?"SHOW":"HIDE" ); - DALI_ASSERT_DEBUG(mOverlay); - - if(show) - { - mIndicatorVisible = Dali::Window::VISIBLE; - } - else - { - mIndicatorVisible = Dali::Window::INVISIBLE; - } - - DoShowIndicator( mIndicatorOrientation ); -} - void Window::ShowIndicator( Dali::Window::IndicatorVisibleMode visibleMode ) { DALI_LOG_TRACE_METHOD_FMT( gWindowLogFilter, "visible : %d\n", visibleMode ); @@ -454,6 +441,7 @@ void Window::IndicatorTypeChanged(Indicator::Type type) ECore::WindowRenderSurface* x11Window = dynamic_cast< ECore::WindowRenderSurface * >( mSurface ); if( x11Window ) { +#ifndef DALI_PROFILE_UBUNTU Ecore_X_Window win = x11Window->GetXWindow(); switch(type) { @@ -469,6 +457,7 @@ void Window::IndicatorTypeChanged(Indicator::Type type) default: break; } +#endif // DALI_PROFILE_UBUNTU } } @@ -635,6 +624,7 @@ void Window::SetAvailableOrientations(const std::vector( mSurface ); if( x11Window ) { +#ifndef DALI_PROFILE_UBUNTU Ecore_X_Window ecoreWindow = x11Window->GetXWindow(); if( ! mWMRotationAppSet ) { @@ -648,7 +638,7 @@ void Window::SetAvailableOrientations(const std::vector(mAvailableOrientations[i]); } ecore_x_e_window_rotation_available_rotations_set(ecoreWindow, rotations, mAvailableOrientations.size() ); - +#endif // DALI_PROFILE_UBUNTU } } @@ -664,6 +654,7 @@ void Window::SetPreferredOrientation(Dali::Window::WindowOrientation orientation ECore::WindowRenderSurface* x11Window = dynamic_cast< ECore::WindowRenderSurface * >( mSurface ); if( x11Window ) { +#ifndef DALI_PROFILE_UBUNTU Ecore_X_Window ecoreWindow = x11Window->GetXWindow(); if( ! mWMRotationAppSet ) @@ -673,6 +664,7 @@ void Window::SetPreferredOrientation(Dali::Window::WindowOrientation orientation } ecore_x_e_window_rotation_preferred_rotation_set(ecoreWindow, orientation); +#endif // DALI_PROFILE_UBUNTU } } @@ -687,6 +679,7 @@ void Window::RotationDone( int orientation, int width, int height ) ECore::WindowRenderSurface* x11Window = dynamic_cast< ECore::WindowRenderSurface * >( mSurface ); if( x11Window ) { +#ifndef DALI_PROFILE_UBUNTU Ecore_X_Window ecoreWindow = x11Window->GetXWindow(); Ecore_X_Window root = ecore_x_window_root_get(ecoreWindow); @@ -704,6 +697,7 @@ void Window::RotationDone( int orientation, int width, int height ) ecore_x_window_prop_property_set( ecoreWindow, ECORE_X_ATOM_E_ILLUME_ROTATE_WINDOW_ANGLE, ECORE_X_ATOM_CARDINAL, 32, &angles, 2 ); +#endif // DALI_PROFILE_UBUNTU } }