Call wxApp::ProcessPendingEvents() from wxX11 event loop.

Now that this function is not called from idle time (because it should be
called before, see r61441), the event loop must call explicitly so do it from
wxGUIEventLoop::Dispatch() in wxX11.

A probably better (but more time-consuming) fix would be to make wxX11 use
wxEventLoopManual as there doesn't seem to be any reason not to.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2009-09-22 00:23:16 +00:00
parent 8e9d125855
commit 1c9919467b

View File

@ -188,6 +188,10 @@ bool wxGUIEventLoop::Pending() const
bool wxGUIEventLoop::Dispatch()
{
// see comment in wxEventLoopManual::ProcessEvents()
if ( wxTheApp )
wxTheApp->ProcessPendingEvents();
XEvent event;
// TODO allowing for threads, as per e.g. wxMSW