Added wxWakeUpIdle() for MSW and empty stubs for Motif, OS2, and Mac

Pending events are now deleted after being processed


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1999-11-17 21:02:45 +00:00
parent 5f2936dacb
commit 9779893b90
7 changed files with 270 additions and 236 deletions

View File

@@ -609,15 +609,7 @@ void wxEvtHandler::AddPendingEvent(wxEvent& event)
wxLEAVE_CRIT_SECT(wxPendingEventsLocker);
// TODO: Wake up idle handler for the other platforms.
#ifdef __WXGTK__
wxWakeUpIdle();
#elif wxUSE_GUI // this works for wxMSW, but may be for others too?
// might also send a dummy message to the top level window, this would
// probably be cleaner?
wxIdleEvent eventIdle;
wxTheApp->OnIdle(eventIdle);
#endif // platform
}
void wxEvtHandler::ProcessPendingEvents()
@@ -631,6 +623,7 @@ void wxEvtHandler::ProcessPendingEvents()
{
event = (wxEvent *)node->Data();
ProcessEvent(*event);
delete event;
delete node;
node = m_pendingEvents->First();
}