diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 20050e11b6..43d42a540f 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -501,8 +501,6 @@ bool wxApp::SendIdleEvents( wxWindow* win ) win->GetEventHandler()->ProcessEvent(event); - win->OnInternalIdle(); - if (event.MoreRequested()) needMore = TRUE; @@ -516,6 +514,8 @@ bool wxApp::SendIdleEvents( wxWindow* win ) node = node->Next(); } + win->OnInternalIdle(); + return needMore; } diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index 20050e11b6..43d42a540f 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -501,8 +501,6 @@ bool wxApp::SendIdleEvents( wxWindow* win ) win->GetEventHandler()->ProcessEvent(event); - win->OnInternalIdle(); - if (event.MoreRequested()) needMore = TRUE; @@ -516,6 +514,8 @@ bool wxApp::SendIdleEvents( wxWindow* win ) node = node->Next(); } + win->OnInternalIdle(); + return needMore; }