X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f2bfce7b27b755f250a14eb374b198af8f37727..62be94e1b151370dda8966b1ed409943f12647e6:/src/mac/app.cpp diff --git a/src/mac/app.cpp b/src/mac/app.cpp index a028b5972b..613c323b92 100644 --- a/src/mac/app.cpp +++ b/src/mac/app.cpp @@ -1106,7 +1106,10 @@ void wxApp::ExitMainLoop() bool wxApp::Pending() { #if TARGET_CARBON - return GetNumEventsInQueue( GetMainEventQueue() ) > 0 ; + // without the receive event (with pull param = false ) nothing is ever reported + EventRef theEvent; + ReceiveNextEvent (0, NULL, kEventDurationNoWait, false, &theEvent); + return GetNumEventsInQueue( GetMainEventQueue() ) > 0 ; #else EventRecord event ;