16 Apr
2025
16 Apr
'25
9:09 a.m.
On Wed Apr 16 09:04:11 2025 +0000, Byeongsik Jeon wrote:
Yes. This is possible if we handle the empty WM_IME_COMPOSITION handling in the WM_IME_ENDCOMPOSITION part. As in d1f9aae5, the empty WM_IME_COMPOSITION is wparam==0x1b, lparam==0x1bf, but I left the code in because it was ambiguous. If ime_to_tascii_ex doesn't update 'compstr' for empty string, I think it should be fine for lparam==0x1lbf. Hmm... Then maybe we should check for dwCompStrOffset instead of dwCompStrLen when sending WM_IME_STARTCOMPOSITION/WM_IME_ENDCOMPOSITION on lines 564 and 588?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/7827#note_101025