git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42959
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// thread so we must lock it here ourselves.
gdk_threads_enter();
// thread so we must lock it here ourselves.
gdk_threads_enter();
- // Indicate that we are now in idle mode and event handlers
- // will have to reinstall the idle handler again.
- {
-#if wxUSE_THREADS
- wxMutexLocker lock(gs_idleTagsMutex);
-#endif
- g_isIdle = true;
- wxTheApp->m_idleTag = 0;
- }
-
bool moreIdles;
// Send idle event to all who request them as long as
bool moreIdles;
// Send idle event to all who request them as long as
gdk_threads_leave();
if (!moreIdles)
gdk_threads_leave();
if (!moreIdles)
+ {
+#if wxUSE_THREADS
+ wxMutexLocker lock(gs_idleTagsMutex);
+#endif
+ // Indicate that we are now in idle mode and event handlers
+ // will have to reinstall the idle handler again.
+ g_isIdle = true;
+ wxTheApp->m_idleTag = 0;
+
// Return FALSE if no more idle events are to be sent
return moreIdles;
// Return FALSE if no more idle events are to be sent
return moreIdles;