Skip to content

Commit

Permalink
macOS: Fix mouse cursor shape not always being reset to text cursor w…
Browse files Browse the repository at this point in the history
…hen mouse re-enters kitty

Fixes #8155
  • Loading branch information
kovidgoyal committed Dec 25, 2024
1 parent 155990c commit 055fb30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 2 additions & 0 deletions glfw/cocoa_window.m
Original file line number Diff line number Diff line change
Expand Up @@ -940,13 +940,15 @@ - (void)mouseExited:(NSEvent *)event
(void)event;
if (!window) return;
_glfwInputCursorEnter(window, false);
[[NSCursor arrowCursor] set];
}

- (void)mouseEntered:(NSEvent *)event
{
(void)event;
if (!window) return;
_glfwInputCursorEnter(window, true);
updateCursorImage(window);
}

- (void)viewDidChangeEffectiveAppearance
Expand Down

0 comments on commit 055fb30

Please sign in to comment.