Rémi Bernon : winex11: Make sure HIMC is opened before sending IME updates.
Module: wine Branch: master Commit: f7e76184f1c5064604381cdfc3c30ef357955e52 URL: https://gitlab.winehq.org/wine/wine/-/commit/f7e76184f1c5064604381cdfc3c30ef... Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Tue May 30 13:16:39 2023 +0200 winex11: Make sure HIMC is opened before sending IME updates. --- dlls/winex11.drv/xim.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/winex11.drv/xim.c b/dlls/winex11.drv/xim.c index 1b063cfe886..209d63f0402 100644 --- a/dlls/winex11.drv/xim.c +++ b/dlls/winex11.drv/xim.c @@ -175,6 +175,7 @@ static int xic_preedit_start( XIC xic, XPointer user, XPointer arg ) if ((ime_comp_buf = realloc( ime_comp_buf, sizeof(WCHAR) ))) *ime_comp_buf = 0; else ERR( "Failed to allocate preedit buffer\n" ); + NtUserPostMessage( hwnd, WM_IME_NOTIFY, IMN_WINE_SET_OPEN_STATUS, TRUE ); post_ime_update( hwnd, 0, ime_comp_buf, NULL ); return -1; @@ -190,6 +191,7 @@ static int xic_preedit_done( XIC xic, XPointer user, XPointer arg ) ime_comp_buf = NULL; post_ime_update( hwnd, 0, NULL, NULL ); + NtUserPostMessage( hwnd, WM_IME_NOTIFY, IMN_WINE_SET_OPEN_STATUS, FALSE ); return 0; }
participants (1)
-
Alexandre Julliard