From: Paul Cornett Date: Thu, 13 Mar 2008 04:37:03 +0000 (+0000) Subject: fix for idle processing stopping without processing all pending events, replaces... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/81a2edf9a995cc58916f4ec02aa140c4acd1b424 fix for idle processing stopping without processing all pending events, replaces patch 1912157 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 8a762a4c4d..c4315c64e6 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -204,6 +204,11 @@ bool wxApp::DoIdle() g_source_remove(m_idleSourceId); m_idleSourceId = 0; } + + // Pending events can be added asynchronously, + // need to keep idle source if any have appeared + needMore = needMore || HasPendingEvents(); + // if more idle processing requested if (needMore) {