Busy cursor don't need wxYield(), SendIdleEvents()
is enough and safe. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "wx/cursor.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/app.h"
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
@@ -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()
|
||||
|
Reference in New Issue
Block a user