React to window delete events & handle SIGTERM, SIGHUP
[platform/core/uifw/dali-adaptor.git] / adaptors / common / application-impl.cpp
index 0407b78..9e1efdd 100644 (file)
@@ -123,6 +123,9 @@ void Application::CreateWindow()
 
   const std::string& windowClassName = mEnvironmentOptions.GetWindowClassName();
   mWindow = Dali::Window::New( windowPosition, mName, windowClassName, mWindowMode == Dali::Application::TRANSPARENT );
+
+  // Quit the application when the window is closed
+  GetImplementation( mWindow ).DeleteRequestSignal().Connect( mSlotDelegate, &Application::Quit );
 }
 
 void Application::CreateAdaptor()