summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-10-04 17:33:50 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-10-04 17:33:50 +0200
commitea80a31266be626525728f7b3d73323353d42c25 (patch)
tree4f0f33bc531bf3d14a728840a6691cddc4bc739a /src
parentf348e2bdb9293237513ef0853a11c63aecbe9f04 (diff)
macOS fix for "Fl_Window::cursor(...) does not work reliably on some platforms" (#1082)
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 7a06f4bfa..ddb96c6b2 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -2534,9 +2534,9 @@ static FLTextInputContext* fltextinputcontext_instance = nil;
// We have to have at least one cursor rect for invalidateCursorRectsForView
// to work, hence the "else" clause.
if (Fl_Cocoa_Window_Driver::driver(w)->cursor)
- [self addCursorRect:[self visibleRect] cursor:Fl_Cocoa_Window_Driver::driver(w)->cursor];
+ [self addCursorRect:[self frame] cursor:Fl_Cocoa_Window_Driver::driver(w)->cursor];
else
- [self addCursorRect:[self visibleRect] cursor:[NSCursor arrowCursor]];
+ [self addCursorRect:[self frame] cursor:[NSCursor arrowCursor]];
}
- (void)mouseUp:(NSEvent *)theEvent {
cocoaMouseHandler(theEvent);