X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dfad0599246651d4994e348d868a3e65613c7379..8704bf74fba8523e2e174bd5a8195b5202009cd0:/src/motif/app.cpp diff --git a/src/motif/app.cpp b/src/motif/app.cpp index f57ac149c8..94e652a549 100644 --- a/src/motif/app.cpp +++ b/src/motif/app.cpp @@ -247,6 +247,7 @@ wxApp::wxApp() m_appContext = (WXAppContext) NULL; m_topLevelWidget = (WXWidget) NULL; m_maxRequestSize = 0; + m_initialDisplay = (WXDisplay*) 0; } bool wxApp::Initialized() @@ -460,6 +461,8 @@ bool wxApp::OnInitGui() cerr << "wxWindows could not open display for " << wxTheApp->GetClassName() << ": exiting.\n"; exit(-1); } + m_initialDisplay = (WXDisplay*) dpy; + wxTheApp->m_topLevelWidget = (WXWidget) XtAppCreateShell((String)NULL, (const char*) wxTheApp->GetClassName(), applicationShellWidgetClass,dpy, NULL,0) ;