Pending() fixed for OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 ;
|
||||
|
||||
|
Reference in New Issue
Block a user