avoid setting live cursor during busy state

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2011-02-28 14:39:37 +00:00
parent 4c00ce28bd
commit 201c6db3e4

View File

@@ -2142,6 +2142,8 @@ void wxWidgetCocoaImpl::DoNotifyFocusEvent(bool receivedFocus, wxWidgetImpl* oth
}
void wxWidgetCocoaImpl::SetCursor(const wxCursor& cursor)
{
if ( !wxIsBusy() )
{
NSPoint location = [NSEvent mouseLocation];
location = [[m_osxView window] convertScreenToBase:location];
@@ -2151,6 +2153,7 @@ void wxWidgetCocoaImpl::SetCursor(const wxCursor& cursor)
{
[(NSCursor*)cursor.GetHCURSOR() set];
}
}
[[m_osxView window] invalidateCursorRectsForView:m_osxView];
}