macOS: Fix mouse cursor shape not always being reset to text cursor when mouse re-enters kitty

Fixes #8155
This commit is contained in:
Kovid Goyal
2024-12-25 08:26:56 +05:30
parent 155990ce0b
commit 055fb30bf2
2 changed files with 4 additions and 0 deletions

View File

@@ -940,6 +940,7 @@ static const NSRange kEmptyRange = { NSNotFound, 0 };
(void)event;
if (!window) return;
_glfwInputCursorEnter(window, false);
[[NSCursor arrowCursor] set];
}
- (void)mouseEntered:(NSEvent *)event
@@ -947,6 +948,7 @@ static const NSRange kEmptyRange = { NSNotFound, 0 };
(void)event;
if (!window) return;
_glfwInputCursorEnter(window, true);
updateCursorImage(window);
}
- (void)viewDidChangeEffectiveAppearance