]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/app.cpp
Added event sample to VC+ project file
[wxWidgets.git] / src / gtk1 / app.cpp
index 5db09e1359a878104717162d42685ce4b4b80f5f..680bbce0f0b1d91ac3bf956ac82573e5ee867897 100644 (file)
@@ -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();