X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bcd3832a828d146855028f75379749a4569d3318..c393c7402138d8d146f58932e3bcce169fc4fd0d:/src/x11/app.cpp diff --git a/src/x11/app.cpp b/src/x11/app.cpp index 28b3b7e52c..461200728d 100644 --- a/src/x11/app.cpp +++ b/src/x11/app.cpp @@ -243,14 +243,6 @@ wxApp::~wxApp() #endif } -bool wxApp::Initialized() -{ - if (GetTopWindow()) - return TRUE; - else - return FALSE; -} - #if !wxUSE_NANOX //----------------------------------------------------------------------- // X11 predicate function for exposure compression @@ -383,8 +375,6 @@ bool wxApp::ProcessXEvent(WXEvent* _event) #if !wxUSE_NANOX case GraphicsExpose: { - printf( "GraphicExpose event\n" ); - wxLogTrace( _T("expose"), _T("GraphicsExpose from %s"), win->GetName().c_str()); win->GetUpdateRegion().Union( event->xgraphicsexpose.x, event->xgraphicsexpose.y, @@ -650,6 +640,7 @@ bool wxApp::ProcessXEvent(WXEvent* _event) default: //wxString eventName = wxGetXEventName(XEvent& event); //wxLogDebug(wxT("Event %s not handled"), eventName.c_str()); + break; #endif // __WXDEBUG__ } @@ -755,7 +746,9 @@ Window wxGetWindowParent(Window window) return (Window) 0; - Window parent, root = 0; +#ifndef __VMS + // VMS chokes on unreacheable code + Window parent, root = 0; #if wxUSE_NANOX int noChildren = 0; #else @@ -776,6 +769,7 @@ Window wxGetWindowParent(Window window) return parent; else return (Window) 0; +#endif } void wxApp::Exit() @@ -795,7 +789,7 @@ bool wxApp::Yield(bool onlyIfNeeded) int i; for (i = 0; i < 2; i++) { - bool s_inYield = FALSE; + static bool s_inYield = FALSE; if ( s_inYield ) {