From c9e352726232feaa1085f9950cddfa6c98fdda95 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 6 Feb 2001 00:04:24 +0000 Subject: [PATCH] applied patch 103591 which should fix wxWakeUpIdle() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/app.cpp | 6 +++--- src/gtk1/app.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 5db09e1359..680bbce0f0 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -182,9 +182,6 @@ gint wxapp_idle_callback( gpointer WXUNUSED(data) ) // thread so we must lock it here ourselves gdk_threads_enter(); - // Sent idle event to all who request them - while (wxTheApp->ProcessIdle()) { } - /* Indicate that we are now in idle mode - even so deeply in idle mode that we don't get any idle events anymore. this is like wxMSW where an idle event is sent only @@ -193,6 +190,9 @@ gint wxapp_idle_callback( gpointer WXUNUSED(data) ) g_isIdle = TRUE; wxTheApp->m_idleTag = 0; + // Sent idle event to all who request them + while (wxTheApp->ProcessIdle()) { } + // Release lock again gdk_threads_leave(); diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index 5db09e1359..680bbce0f0 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -182,9 +182,6 @@ gint wxapp_idle_callback( gpointer WXUNUSED(data) ) // thread so we must lock it here ourselves gdk_threads_enter(); - // Sent idle event to all who request them - while (wxTheApp->ProcessIdle()) { } - /* Indicate that we are now in idle mode - even so deeply in idle mode that we don't get any idle events anymore. this is like wxMSW where an idle event is sent only @@ -193,6 +190,9 @@ gint wxapp_idle_callback( gpointer WXUNUSED(data) ) g_isIdle = TRUE; wxTheApp->m_idleTag = 0; + // Sent idle event to all who request them + while (wxTheApp->ProcessIdle()) { } + // Release lock again gdk_threads_leave(); -- 2.45.2