mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-06-04 10:54:48 +00:00
This PR addresses two IME-related issues: 1. Fix IME position calculation with window padding, fixed https://github.com/ghostty-org/ghostty/issues/4933 - Add padding offset to IME position calculation to correctly position the IME window - This ensures IME window appears at the right position when `window-padding-x/window-padding-y` are set 2. Clear selection when IME input starts - Previously, when using CJK IME with text selected, the IME window would appear near the selection - Now it clears selection and shows IME window at cursor position - This matches the behavior of iTerm2 and Terminal.app ## Before https://github.com/user-attachments/assets/cd5c7b55-2083-40ce-a528-9a98898a6498 ## After https://github.com/user-attachments/assets/9f2c17c6-e885-45f3-9ab1-a9c3858690ec