X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/238d735dc2db6fc2c64ed48ceba2d00a85c4b273..babd4308f2704f4234e271d29a8e8c1e211b4af6:/src/gtk1/cursor.cpp diff --git a/src/gtk1/cursor.cpp b/src/gtk1/cursor.cpp index 2277c0aee4..7a47bd6bd9 100644 --- a/src/gtk1/cursor.cpp +++ b/src/gtk1/cursor.cpp @@ -13,6 +13,7 @@ #endif #include "wx/cursor.h" +#include "wx/utils.h" #include "gdk/gdk.h" @@ -64,6 +65,7 @@ wxCursor::wxCursor( int cursorId ) GdkCursorType gdk_cur = GDK_LEFT_PTR; switch (cursorId) { + case wxCURSOR_DEFAULT: gdk_cur = GDK_LEFT_PTR; break; case wxCURSOR_HAND: gdk_cur = GDK_HAND1; break; case wxCURSOR_CROSS: gdk_cur = GDK_CROSSHAIR; break; case wxCURSOR_SIZEWE: gdk_cur = GDK_SB_H_DOUBLE_ARROW; break; @@ -156,6 +158,8 @@ void wxEndBusyCursor() wxSetCursor( gs_savedCursor ); gs_savedCursor = wxNullCursor; + + wxYield(); } void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) ) @@ -169,6 +173,8 @@ void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) ) gs_savedCursor = g_globalCursor; wxSetCursor( wxCursor(wxCURSOR_WATCH) ); + + wxYield(); } bool wxIsBusy()