X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37ab9399a8f77289e29301bc665cc92b3a617d75..28f12ffb86b5a32c7eaa596a095f4b01890c9f46:/src/unix/evtloopunix.cpp

diff --git a/src/unix/evtloopunix.cpp b/src/unix/evtloopunix.cpp
index ec07e2559d..fc1f469ae4 100644
--- a/src/unix/evtloopunix.cpp
+++ b/src/unix/evtloopunix.cpp
@@ -148,17 +148,6 @@ bool wxConsoleEventLoop::Pending() const
 }
 
 bool wxConsoleEventLoop::Dispatch()
-{
-    wxTheApp->ProcessPendingEvents();
-    return true;
-}
-
-void wxConsoleEventLoop::WakeUp()
-{
-    m_wakeupPipe.WakeUp();
-}
-
-void wxConsoleEventLoop::OnNextIteration()
 {
     // calculate the timeout until the next timer expiration
     int timeout;
@@ -182,6 +171,17 @@ void wxConsoleEventLoop::OnNextIteration()
     wxTimerScheduler::Get().NotifyExpired();
 #endif
 
+    wxTheApp->ProcessPendingEvents();
+    return true;
+}
+
+void wxConsoleEventLoop::WakeUp()
+{
+    m_wakeupPipe.WakeUp();
+}
+
+void wxConsoleEventLoop::OnNextIteration()
+{
     // call the signal handlers for any signals we caught recently
     wxTheApp->CheckSignal();
 }