make sure timer events will trigger idle processing, #10251
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#if wxUSE_TIMER
|
||||
|
||||
#include "wx/gtk/private/timer.h"
|
||||
#include "wx/app.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
@@ -40,6 +41,10 @@ static gboolean timeout_callback(gpointer data)
|
||||
// Release lock again.
|
||||
gdk_threads_leave();
|
||||
|
||||
wxApp* app = wxTheApp;
|
||||
if (app)
|
||||
app->WakeUpIdle();
|
||||
|
||||
return keepGoing;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user