[3.0] Add key grab/ungrab interfaces for Tizen (X11/Wayland)
[platform/core/uifw/dali-adaptor.git] / adaptors / ecore / wayland / window-impl-ecore-wl.cpp
index e2ad5d6..619d516 100644 (file)
@@ -67,6 +67,13 @@ struct Window::EventHandler
     mClientMessageHandler( NULL ),
     mEcoreWindow( 0 )
   {
+    ECore::WindowRenderSurface* wlWindow( dynamic_cast< ECore::WindowRenderSurface* >( mWindow->mSurface ) );
+    if( wlWindow )
+    {
+      mEcoreWindow = wlWindow->GetWlWindow();
+    }
+
+    DALI_ASSERT_ALWAYS( mEcoreWindow != 0 && "There is no ecore wl window." );
   }
 
   /**