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
This commit is contained in:
Vadim Zeitlin
2006-03-09 13:44:02 +00:00
parent c4fa282ce1
commit 0faa7620a5

View File

@@ -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