Fix wxSocket under wxMotif.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -326,11 +326,14 @@ void wxApp::ExitMainLoop()
|
|||||||
// Is a message/event pending?
|
// Is a message/event pending?
|
||||||
bool wxApp::Pending()
|
bool wxApp::Pending()
|
||||||
{
|
{
|
||||||
|
return m_eventLoop->Pending();
|
||||||
|
#if 0
|
||||||
XFlush(XtDisplay( (Widget) wxTheApp->GetTopLevelWidget() ));
|
XFlush(XtDisplay( (Widget) wxTheApp->GetTopLevelWidget() ));
|
||||||
|
|
||||||
// Fix by Doug from STI, to prevent a stall if non-X event
|
// Fix by Doug from STI, to prevent a stall if non-X event
|
||||||
// is found.
|
// is found.
|
||||||
return ((XtAppPending( (XtAppContext) GetAppContext() ) & XtIMXEvent) != 0) ;
|
return ((XtAppPending( (XtAppContext) GetAppContext() ) & XtIMXEvent) != 0) ;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dispatch a message.
|
// Dispatch a message.
|
||||||
|
Reference in New Issue
Block a user