From 055fb30bf2827e266a51685113efdff6bfc1cd5c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 25 Dec 2024 08:26:56 +0530 Subject: [PATCH] macOS: Fix mouse cursor shape not always being reset to text cursor when mouse re-enters kitty Fixes #8155 --- docs/changelog.rst | 2 ++ glfw/cocoa_window.m | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index 68cbdc269..fe8eb9ccb 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -101,6 +101,8 @@ Detailed list of changes - Cursor trails: Fix pure vertical movement sometimes not triggering a trail and holding down a key in nvim causing the trail to be glitchy (:pull:`8152`, :pull:`8153`) +- macOS: Fix mouse cursor shape not always being reset to text cursor when mouse re-enters kitty (:iss:`8155`) + 0.38.0 [2024-12-15] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index e73bf0a17..79e4104a1 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -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