From f15b55cee06b641c513eda9c010574299416bd99 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Mon, 13 Oct 2003 17:23:23 +0000 Subject: [PATCH] Fixes for application not closing after last top level window closed. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/motif/app.h | 2 -- src/motif/app.cpp | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/wx/motif/app.h b/include/wx/motif/app.h index c33deb99df..b7bcef5637 100644 --- a/include/wx/motif/app.h +++ b/include/wx/motif/app.h @@ -84,8 +84,6 @@ public: wxXVisualInfo* GetVisualInfo(WXDisplay* display); private: - wxEventLoop* m_eventLoop; - // Motif-specific WXAppContext m_appContext; WXColormap m_mainColormap; diff --git a/src/motif/app.cpp b/src/motif/app.cpp index 41e76ef23c..a723826ec3 100644 --- a/src/motif/app.cpp +++ b/src/motif/app.cpp @@ -120,7 +120,7 @@ wxApp::wxApp() argc = 0; argv = NULL; - m_eventLoop = new wxEventLoop; + m_mainLoop = new wxEventLoop; m_mainColormap = (WXColormap) NULL; m_appContext = (WXAppContext) NULL; m_initialDisplay = (WXDisplay*) 0; @@ -129,7 +129,7 @@ wxApp::wxApp() wxApp::~wxApp() { - delete m_eventLoop; + delete m_mainLoop; for( wxPerDisplayDataMap::iterator it = m_perDisplayData->begin(), end = m_perDisplayData->end(); @@ -157,7 +157,7 @@ int wxApp::MainLoop() XDefaultRootWindow(XtDisplay((Widget) wxTheApp->GetTopLevelWidget())), PropertyChangeMask); - m_eventLoop->Run(); + m_mainLoop->Run(); return 0; } -- 2.50.0