diff --git a/include/wx/mac/carbon/private.h b/include/wx/mac/carbon/private.h index 90e220dee9..a78ba80150 100644 --- a/include/wx/mac/carbon/private.h +++ b/include/wx/mac/carbon/private.h @@ -335,9 +335,13 @@ public : { return EventTimeToTicks( GetTime() ) ; } - OSStatus SetTime( EventTime inWhen = 0 /*now*/ ) + OSStatus SetCurrentTime( ) { - return ::SetEventTime( m_eventRef , inWhen ? inWhen : GetCurrentEventTime() ) ; + return ::SetEventTime( m_eventRef , GetCurrentEventTime() ) ; + } + OSStatus SetTime( EventTime when ) + { + return ::SetEventTime( m_eventRef , when ) ; } operator EventRef () { return m_eventRef; } diff --git a/src/mac/carbon/utils.cpp b/src/mac/carbon/utils.cpp index 07f8868864..5de1468e75 100644 --- a/src/mac/carbon/utils.cpp +++ b/src/mac/carbon/utils.cpp @@ -746,7 +746,7 @@ void wxMacWakeUp() { if ( IsEventInQueue( GetMainEventQueue() , s_wakeupEvent ) ) return ; - s_wakeupEvent.SetTime(0) ; + s_wakeupEvent.SetCurrentTime() ; err = PostEventToQueue(GetMainEventQueue(), s_wakeupEvent, kEventPriorityHigh); }