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.
pull/8492/head
Mitchell Hashimoto 2025-09-02 12:38:50 -07:00 committed by GitHub
commit 3664ee9f87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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)