From: Vadim Zeitlin Date: Tue, 22 Sep 2009 00:23:16 +0000 (+0000) Subject: Call wxApp::ProcessPendingEvents() from wxX11 event loop. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1c9919467b422edf561753db25605bc7aa293b55 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 --- diff --git a/src/x11/evtloop.cpp b/src/x11/evtloop.cpp index 5e139fe8cc..6cd9b2b24a 100644 --- a/src/x11/evtloop.cpp +++ b/src/x11/evtloop.cpp @@ -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