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
This commit is contained in:
Mattia Barbon 2003-10-13 17:23:23 +00:00
parent 7f2e78ed5d
commit f15b55cee0
2 changed files with 3 additions and 5 deletions

View File

@ -84,8 +84,6 @@ public:
wxXVisualInfo* GetVisualInfo(WXDisplay* display);
private:
wxEventLoop* m_eventLoop;
// Motif-specific
WXAppContext m_appContext;
WXColormap m_mainColormap;

View File

@ -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;
}