disable cursorRects for global busy state

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2011-02-28 14:47:32 +00:00
parent 201c6db3e4
commit 3ac8892150

View File

@ -273,6 +273,13 @@ void wxBeginBusyCursor(const wxCursor *cursor)
{
if (gs_wxBusyCursorCount++ == 0)
{
NSEnumerator *enumerator = [[[NSApplication sharedApplication] windows] objectEnumerator];
id object;
while ((object = [enumerator nextObject])) {
[(NSWindow*) object disableCursorRects];
}
gMacStoredActiveCursor = gMacCurrentCursor;
cursor->MacInstall();
@ -289,10 +296,17 @@ void wxEndBusyCursor()
if (--gs_wxBusyCursorCount == 0)
{
gMacStoredActiveCursor.MacInstall();
gMacStoredActiveCursor = wxNullCursor;
NSEnumerator *enumerator = [[[NSApplication sharedApplication] windows] objectEnumerator];
id object;
while ((object = [enumerator nextObject])) {
[(NSWindow*) object enableCursorRects];
}
wxSetCursor(wxNullCursor);
gMacStoredActiveCursor.MacInstall();
gMacStoredActiveCursor = wxNullCursor;
}
}