macOS: Notify macOS of cell width/height for firstRect

Related to #2473

This fixes an issue where the dictation icon didn't show the language 
picker.
pull/8490/head
Mitchell Hashimoto 2025-09-02 12:26:50 -07:00
parent 4af290d5f0
commit 2bf0d3f4c7
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 1 additions and 1 deletions

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)