mirror-ghostty/macos
Mitchell Hashimoto 4e47b2ab6b
macos: send a cursor position event on mouseEnter
Fixes #3117

On mouseExit we sent a cursor position event with (-1, -1). Negative
values are meant to indicate that the cursor is not on the surface. The
magnitude of the values are irrelevant. However, we never reset the
cursor position on mouseEnter.

This has the effect of the previous cursor position being stuck outside
the viewport which makes certain things such as `button` mouse reporting
not report until the mouse is moved.

This commit sends the correct cursor position event on mouseEnter.
2024-12-26 07:16:43 -08:00
..
Assets.xcassets macos: add macos-icon-frame and some custom frame styles 2024-12-21 19:48:24 -08:00
Ghostty.xcodeproj macos: custom app icon goes into About window 2024-12-21 19:31:30 -08:00
Sources macos: send a cursor position event on mouseEnter 2024-12-26 07:16:43 -08:00
.gitignore build: LipoStep 2023-02-19 10:44:53 -08:00
Ghostty-Info.plist ci: release tag workflow 2024-12-20 13:02:05 -08:00
Ghostty.entitlements macos: add entitlements for basically everything so macos asks 2023-11-23 09:00:20 -08:00
GhosttyDebug.entitlements macos: add Sparkle via Swift PM 2023-12-18 19:09:38 -08:00
GhosttyReleaseLocal.entitlements fix(macos): ReleaseLocal build configuration with "Library Validation" disabled 2023-12-20 16:54:58 -05:00