X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/065e208ec09e3d08d51d9604497f92f53c210f93..b28aeea5cad996158ccc8c63d19aae3786f7b8b2:/src/cocoa/NSView.mm diff --git a/src/cocoa/NSView.mm b/src/cocoa/NSView.mm index 7a4d133ff4..364fa03059 100644 --- a/src/cocoa/NSView.mm +++ b/src/cocoa/NSView.mm @@ -73,6 +73,7 @@ void wxCocoaNSView::DisassociateNSView(WX_NSView cocoaNSView) - (void)otherMouseDown:(NSEvent *)theEvent; - (void)otherMouseDragged:(NSEvent *)theEvent; - (void)otherMouseUp:(NSEvent *)theEvent; +- (void)resetCursorRects; @end // wxPoserNSView WX_IMPLEMENT_POSER(wxPoserNSView); @@ -169,6 +170,13 @@ WX_IMPLEMENT_POSER(wxPoserNSView); [super otherMouseUp:theEvent]; } +- (void)resetCursorRects +{ + wxCocoaNSView *win = wxCocoaNSView::GetFromCocoa(self); + if( !win || !win->Cocoa_resetCursorRects() ) + [super resetCursorRects]; +} + @end // implementation wxPoserNSView @interface wxNSViewNotificationObserver : NSObject