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:
@@ -273,6 +273,13 @@ void wxBeginBusyCursor(const wxCursor *cursor)
|
|||||||
{
|
{
|
||||||
if (gs_wxBusyCursorCount++ == 0)
|
if (gs_wxBusyCursorCount++ == 0)
|
||||||
{
|
{
|
||||||
|
NSEnumerator *enumerator = [[[NSApplication sharedApplication] windows] objectEnumerator];
|
||||||
|
id object;
|
||||||
|
|
||||||
|
while ((object = [enumerator nextObject])) {
|
||||||
|
[(NSWindow*) object disableCursorRects];
|
||||||
|
}
|
||||||
|
|
||||||
gMacStoredActiveCursor = gMacCurrentCursor;
|
gMacStoredActiveCursor = gMacCurrentCursor;
|
||||||
cursor->MacInstall();
|
cursor->MacInstall();
|
||||||
|
|
||||||
@@ -289,10 +296,17 @@ void wxEndBusyCursor()
|
|||||||
|
|
||||||
if (--gs_wxBusyCursorCount == 0)
|
if (--gs_wxBusyCursorCount == 0)
|
||||||
{
|
{
|
||||||
gMacStoredActiveCursor.MacInstall();
|
NSEnumerator *enumerator = [[[NSApplication sharedApplication] windows] objectEnumerator];
|
||||||
gMacStoredActiveCursor = wxNullCursor;
|
id object;
|
||||||
|
|
||||||
|
while ((object = [enumerator nextObject])) {
|
||||||
|
[(NSWindow*) object enableCursorRects];
|
||||||
|
}
|
||||||
|
|
||||||
wxSetCursor(wxNullCursor);
|
wxSetCursor(wxNullCursor);
|
||||||
|
|
||||||
|
gMacStoredActiveCursor.MacInstall();
|
||||||
|
gMacStoredActiveCursor = wxNullCursor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user