mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
macOS: Fix mouse cursor shape not always being reset to text cursor when mouse re-enters kitty
Fixes #8155
This commit is contained in:
@@ -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`)
|
- 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]
|
0.38.0 [2024-12-15]
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|||||||
@@ -940,6 +940,7 @@ static const NSRange kEmptyRange = { NSNotFound, 0 };
|
|||||||
(void)event;
|
(void)event;
|
||||||
if (!window) return;
|
if (!window) return;
|
||||||
_glfwInputCursorEnter(window, false);
|
_glfwInputCursorEnter(window, false);
|
||||||
|
[[NSCursor arrowCursor] set];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)mouseEntered:(NSEvent *)event
|
- (void)mouseEntered:(NSEvent *)event
|
||||||
@@ -947,6 +948,7 @@ static const NSRange kEmptyRange = { NSNotFound, 0 };
|
|||||||
(void)event;
|
(void)event;
|
||||||
if (!window) return;
|
if (!window) return;
|
||||||
_glfwInputCursorEnter(window, true);
|
_glfwInputCursorEnter(window, true);
|
||||||
|
updateCursorImage(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)viewDidChangeEffectiveAppearance
|
- (void)viewDidChangeEffectiveAppearance
|
||||||
|
|||||||
Reference in New Issue
Block a user