From 81a2edf9a995cc58916f4ec02aa140c4acd1b424 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 13 Mar 2008 04:37:03 +0000 Subject: [PATCH] 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 --- src/gtk/app.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- 2.50.0