diff options
author | Neil <nyamatongwe@gmail.com> | 2017-04-22 20:24:24 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-04-22 20:24:24 +1000 |
commit | 1eeadce64ec9d786c1da10e98f188a3221b7373b (patch) | |
tree | 660f0b845a8c0b745cc1f021cc4291bb14c30f44 /cocoa/ScintillaView.mm | |
parent | ce8991b3f3b156ada52871052cc856201e1474de (diff) | |
download | scintilla-mirror-1eeadce64ec9d786c1da10e98f188a3221b7373b.tar.gz |
Restrict cursor changing to visible bounds so the text area cursor doesn't show
over other views above and below ScintillaView.
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r-- | cocoa/ScintillaView.mm | 3 |
1 files changed, 2 insertions, 1 deletions
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]; } |