From 1eeadce64ec9d786c1da10e98f188a3221b7373b Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 22 Apr 2017 20:24:24 +1000 Subject: Restrict cursor changing to visible bounds so the text area cursor doesn't show over other views above and below ScintillaView. --- cocoa/ScintillaView.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cocoa/ScintillaView.mm') diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index 1e85ab6e8..2e35a5492 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -301,7 +301,8 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor) [super resetCursorRects]; // We only have one cursor rect: our bounds. - [self addCursorRect: [self bounds] cursor: mCurrentCursor]; + const NSRect visibleBounds = mOwner.backend->GetBounds(); + [self addCursorRect: visibleBounds cursor: mCurrentCursor]; [mCurrentCursor setOnMouseEntered: YES]; } -- cgit v1.2.3