+ // now the wxHandlersWithPendingEvents is surely empty; however some event
+ // handlers may have moved themselves into wxHandlersWithPendingDelayedEvents
+ // because of a selective wxYield call in progress.
+ // Now we need to move them back to wxHandlersWithPendingEvents so the next
+ // call to this function has the chance of processing them:
+ if (!wxHandlersWithPendingDelayedEvents->IsEmpty())
+ {
+ if (!wxHandlersWithPendingEvents)
+ wxHandlersWithPendingEvents = new wxList;
+
+ WX_APPEND_LIST(wxHandlersWithPendingEvents, wxHandlersWithPendingDelayedEvents);
+ wxHandlersWithPendingDelayedEvents->Clear();
+ }
+