X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe593cc504195a3c91281eae4edf5e852a51a59c..894d74dcc233b7f9a936767558f3e061593dd062:/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();