On Sat Oct 25 21:26:27 2025 +0000, Byeongsik Jeon wrote:
After examining macdrv_ProcessEvents and NtUserMsgWaitForMultipleObjectsEx, I finally understand the meaning of your comment in !9246. Thank you. Since NSTextInputContext handleEvent operates synchronously, IM_SET_TEXT can also be removed. The provided POC patch is poorly written in many places. I'm embarrassed. If implemented, I believe we could receive the hwnd via macdrv_ime_process_key. Something like ‘struct ime_result’. But it's not strictly necessary at this point. Patch v2 appears to work fine with the Korean keyboard. In my opinion, the Japanese keyboard issue should also be resolved in this MR to avoid regression. The current state is that Japanese keyboard is very slow. This happens frequently because the ‘RETURN’ key is used as the commit key.
Reverting !9246 and replacing NtUserMsgWaitForMultipleObjectEx with macdrv_ProcessEvents resolves the issue. I had introduced the event handle because I misunderstood the meaning of ‘QS_POSTMESSAGE | QS_SENDMESSAGE’.