mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-01 19:22:13 +00:00
macOS: Fix dictation icon's position while speaking
This commit is contained in:
@@ -1740,7 +1740,13 @@ extension Ghostty.SurfaceView: NSTextInputClient {
|
||||
} else {
|
||||
ghostty_surface_ime_point(surface, &x, &y, &width, &height)
|
||||
}
|
||||
|
||||
if range.length == 0, width > 0 {
|
||||
// This fixes #8493 while speaking
|
||||
// My guess is that positive width doesn't make sense
|
||||
// for the dictation microphone indicator
|
||||
width = 0
|
||||
x += cellSize.width * Double(range.location + range.length)
|
||||
}
|
||||
// Ghostty coordinates are in top-left (0, 0) so we have to convert to
|
||||
// bottom-left since that is what UIKit expects
|
||||
// when there's is no characters selected,
|
||||
|
||||
Reference in New Issue
Block a user