X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f2bfce7b27b755f250a14eb374b198af8f37727..163dc80eff2faed2c3c1fb3ee6b46eb5ae9d70f9:/src/mac/carbon/app.cpp diff --git a/src/mac/carbon/app.cpp b/src/mac/carbon/app.cpp index a028b5972b..613c323b92 100644 --- a/src/mac/carbon/app.cpp +++ b/src/mac/carbon/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 ;