macOS: Notify macOS of cell width/height for firstRect (#8490)

Related to #2473

This fixes an issue where the dictation icon didn't show the language
picker.
This commit is contained in:
Mitchell Hashimoto
2025-09-02 12:38:50 -07:00
committed by GitHub

View File

@@ -1710,7 +1710,7 @@ extension Ghostty.SurfaceView: NSTextInputClient {
// Ghostty coordinates are in top-left (0, 0) so we have to convert to
// bottom-left since that is what UIKit expects
let viewRect = NSMakeRect(x, frame.size.height - y, 0, 0)
let viewRect = NSMakeRect(x, frame.size.height - y, cellSize.width, cellSize.height)
// Convert the point to the window coordinates
let winRect = self.convert(viewRect, to: nil)