X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fwindow-system%2Ftizen-wayland%2Fecore-wl2%2Fwindow-base-ecore-wl2.cpp;h=1eee7a8da0b82086da0f50a311b1d616d34a009e;hb=31f6d14ee31aef11403280f9d5ea5eadac933210;hp=1c6a63b3997c8d3300ca2de0dfbd7ce4d09a0582;hpb=fde0e4db4cbd45f71aaa2098552fc6a30bd36a04;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp b/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp index 1c6a63b..1eee7a8 100755 --- a/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp +++ b/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp @@ -2207,35 +2207,15 @@ void WindowBaseEcoreWl2::CreateWindow( PositionSize positionSize ) ecore_wl2_window_type_set( mEcoreWindow, ECORE_WL2_WINDOW_TYPE_TOPLEVEL ); } -void WindowBaseEcoreWl2::SetParent( Any parent ) +void WindowBaseEcoreWl2::SetParent( WindowBase* parentWinBase ) { - Ecore_Wl2_Window* mEcoreParent; - if( parent.Empty() == false ) + Ecore_Wl2_Window* ecoreParent = NULL; + if( parentWinBase ) { - // check we have a valid type - DALI_ASSERT_ALWAYS( ( parent.GetType() == typeid (Ecore_Wl2_Window *) ) && "Parent's surface type is invalid" ); - mEcoreParent = AnyCast< Ecore_Wl2_Window* >( parent ); - } - else - { - mEcoreParent = NULL; - } - ecore_wl2_window_parent_set( mEcoreWindow, mEcoreParent ); -} - -bool WindowBaseEcoreWl2::IsMatchedWindow( Any window ) -{ - bool ret = false; - if ( window.Empty() == false ) - { - // check we have a valid type - DALI_ASSERT_ALWAYS( ( window.GetType() == typeid (Ecore_Wl2_Window *) ) && "Window's surface type is invalid" ); - if ( AnyCast< Ecore_Wl2_Window*>( window ) == mEcoreWindow ) - { - ret = true; - } + WindowBaseEcoreWl2* winBaseEcore2 = static_cast( parentWinBase ); + ecoreParent = winBaseEcore2->mEcoreWindow; } - return ret; + ecore_wl2_window_parent_set( mEcoreWindow, ecoreParent ); } } // namespace Adaptor