From b1693b41f4801f6d252af9d7a432b9c09e111160 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 4 Oct 2024 23:38:33 +0200 Subject: [PATCH] macOS fix for "Fl_Window::cursor(...) does not work reliably on some platforms" (#1082) --- src/Fl_cocoa.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 6f88ca9fd..6bec00ac3 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2548,9 +2548,9 @@ static FLTextInputContext* fltextinputcontext_instance = nil; // We have to have at least one cursor rect for invalidateCursorRectsForView // to work, hence the "else" clause. if (i->cursor) - [self addCursorRect:[self visibleRect] cursor:(NSCursor*)i->cursor]; + [self addCursorRect:[self frame] cursor:(NSCursor*)i->cursor]; else - [self addCursorRect:[self visibleRect] cursor:[NSCursor arrowCursor]]; + [self addCursorRect:[self frame] cursor:[NSCursor arrowCursor]]; } - (void)mouseUp:(NSEvent *)theEvent { cocoaMouseHandler(theEvent);