X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cb738b8baf4482fbaeac4dfdcb6dfcebb2f099ce..ed8385818f26035d2f60d3a719250ffab48e6c34:/src/gtk/cursor.cpp diff --git a/src/gtk/cursor.cpp b/src/gtk/cursor.cpp index a03f6ed217..a323e44d69 100644 --- a/src/gtk/cursor.cpp +++ b/src/gtk/cursor.cpp @@ -19,7 +19,7 @@ #include "wx/colour.h" #endif // WX_PRECOMP -#include "wx/gtk/private.h" //for idle stuff +#include //----------------------------------------------------------------------------- // wxCursor @@ -379,7 +379,9 @@ GdkCursor *wxCursor::GetCursor() const // busy cursor routines //----------------------------------------------------------------------------- -extern wxCursor g_globalCursor; +/* Current cursor, in order to hang on to + * cursor handle when setting the cursor globally */ +wxCursor g_globalCursor; static wxCursor gs_savedCursor; static int gs_busyCount = 0; @@ -431,8 +433,6 @@ bool wxIsBusy() void wxSetCursor( const wxCursor& cursor ) { - if (g_isIdle) - wxapp_install_idle_handler(); - g_globalCursor = cursor; + wxTheApp->WakeUpIdle(); }