]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed idle event generation logic (thanks to Paul Cornett for patch 1444602)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Mar 2006 13:44:02 +0000 (13:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Mar 2006 13:44:02 +0000 (13:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/app.cpp

index 1614d6c5f50f564a372f009983d03e820cdf5b50..987ce870f2d086826dac7eae79b2b615e2f5e5d2 100644 (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