mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 03:25:50 +00:00
On macOS, TUI apps like Zellij that frequently update the window title cause phantom mouse-move events to be generated at the same coordinates. These phantom events reach cursorPosCallback in the core, which calls showMouse() and explicitly unhides the cursor via NSCursor.setHiddenUntilMouseMoves(false), defeating the mouse-hide-while-typing feature. This ports the same position-equality check already present in the GTK runtime (added in PR #4973 for issue #3345) to the embedded runtime used by macOS. If the cursor position hasn't changed by more than 1px, the event is discarded. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>