From 0faa7620a54dfe2bf3fd1e016dd2378637af3a32 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 9 Mar 2006 13:44:02 +0000 Subject: [PATCH] fixed idle event generation logic (thanks to Paul Cornett for patch 1444602) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/app.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 1614d6c5f5..987ce870f2 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -248,11 +248,11 @@ static gint wxapp_idle_callback( gpointer WXUNUSED(data) ) wxTheApp->m_idleTag = 0; } - bool moreIdles = false; + bool moreIdles; // Send idle event to all who request them as long as // no events have popped up in the event queue. - while (moreIdles = wxTheApp->ProcessIdle() && (gtk_events_pending() == 0)) + while ( (moreIdles = wxTheApp->ProcessIdle()) && gtk_events_pending() == 0) ; // Release lock again -- 2.45.2