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:
parent
201c6db3e4
commit
3ac8892150
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user