X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a1db952fde952abc8b241c1e1fac0f952f8b4dd5..585266618c27ac77a5e5316c03e06ffc514715c9:/src/gtk/cursor.cpp diff --git a/src/gtk/cursor.cpp b/src/gtk/cursor.cpp index 61a8c8f0b6..25b07ea391 100644 --- a/src/gtk/cursor.cpp +++ b/src/gtk/cursor.cpp @@ -14,6 +14,7 @@ #include "wx/cursor.h" #include "wx/utils.h" +#include "wx/app.h" #include #include @@ -204,7 +205,8 @@ void wxEndBusyCursor() wxSetCursor( gs_savedCursor ); gs_savedCursor = wxNullCursor; - wxYield(); + if (wxTheApp) + wxTheApp->SendIdleEvents(); } void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) ) @@ -219,7 +221,8 @@ void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) ) wxSetCursor( wxCursor(wxCURSOR_WATCH) ); - wxYield(); + if (wxTheApp) + wxTheApp->SendIdleEvents(); } bool wxIsBusy()