On Thu May 4 13:48:22 2023 +0000, Rémi Bernon wrote:
Hmm, I don't know, I've just been testing by updating the input context and sending WM_IME messages directly to the edit control, then checking with `EM_GETSEL` and `WM_GETTEXT` what effect they had. I didn't see any change to the selection range or text until it a result string is committed when doing this. I didn't investigate very long anyway, and I think that keeping and displaying the composition string separately is an easier fix.
The test is correct. I've explained why. Because the WM_IME_COMPOSITION(GCS_COMPSTR) message is passed to the IME UI window Proc, it doesn't appear in the edit control until the commit message comes.
However, the current Wine ime_ui_window_proc needs a lot of improvement.
I think the v2 implementation looks good. I just have a slight problem. The test sequence is NIHONGO-ENTER-ENTER-NIHONGO in ibus-mozc.