Weekly updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -965,19 +965,20 @@ bool wxApp::ProcessMessage(
|
||||
return FALSE;
|
||||
} // end of wxApp::ProcessMessage
|
||||
|
||||
bool gbInOnIdle = FALSE;
|
||||
|
||||
void wxApp::OnIdle(
|
||||
wxIdleEvent& rEvent
|
||||
)
|
||||
{
|
||||
static bool sbInOnIdle = FALSE;
|
||||
|
||||
//
|
||||
// Avoid recursion (via ProcessEvent default case)
|
||||
//
|
||||
if (sbInOnIdle)
|
||||
if (gbInOnIdle)
|
||||
return;
|
||||
|
||||
sbInOnIdle = TRUE;
|
||||
gbInOnIdle = TRUE;
|
||||
|
||||
//
|
||||
// If there are pending events, we must process them: pending events
|
||||
@@ -1019,7 +1020,7 @@ void wxApp::OnIdle(
|
||||
//
|
||||
rEvent.RequestMore(TRUE);
|
||||
}
|
||||
sbInOnIdle = FALSE;
|
||||
gbInOnIdle = FALSE;
|
||||
} // end of wxApp::OnIdle
|
||||
|
||||
// Send idle event to all top-level windows
|
||||
|
Reference in New Issue
Block a user