From 8ab9a53699b34bd9f4a4934fd1f6c9c4c78f6599 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Wed, 22 Feb 2006 23:37:46 +0000 Subject: [PATCH] Support requesting more idle events. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/app.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 753e8f07ac..9f3abf88b9 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -249,17 +249,18 @@ static gint wxapp_idle_callback( gpointer WXUNUSED(data) ) wxTheApp->m_idleTag = 0; } + bool moreIdles = false; + // Send idle event to all who request them as long as // no events have popped up in the event queue. - while (wxTheApp->ProcessIdle() && (gtk_events_pending() == 0)) + while (moreIdles = wxTheApp->ProcessIdle() && (gtk_events_pending() == 0)) ; // Release lock again gdk_threads_leave(); - // Return FALSE to indicate that no more idle events are - // to be sent (single shot instead of continuous stream). - return FALSE; + // Return FALSE if no more idle events are to be sent + return moreIdles; } #if wxUSE_THREADS -- 2.47.2