X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe593cc504195a3c91281eae4edf5e852a51a59c..1e96e5030cd899ac43e9f6e7e9302d25644a05e9:/src/gtk/evtloop.cpp diff --git a/src/gtk/evtloop.cpp b/src/gtk/evtloop.cpp index 429de81069..ac59d77edb 100644 --- a/src/gtk/evtloop.cpp +++ b/src/gtk/evtloop.cpp @@ -101,16 +101,13 @@ void wxEventLoop::Exit(int rc) // wxEventLoop message processing dispatching // ---------------------------------------------------------------------------- -extern bool g_isIdle; - bool wxEventLoop::Pending() const { - if (wxTheApp && !g_isIdle) + if (wxTheApp) { // We need to remove idle callbacks or gtk_events_pending will // never return false. wxTheApp->RemoveIdleTag(); - g_isIdle = TRUE; } return gtk_events_pending();