[PATCH 0/1] MR9097: imm32: Do not overwrite input context window with GetFocus() in ime_ui_update_window.
Overwriting ctx->hWnd with the current focus window breaks the relationship between the HIMC handle and its associated window. This direct assignment does not update the corresponding state in the wine server, leading to inconsistencies between client and server. Signed-off-by: chenzhengyong <chenzhengyong(a)uniontech.com> -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9097
From: chenzhengyong <chenzhengyong(a)uniontech.com> Overwriting ctx->hWnd with the current focus window breaks the relationship between the HIMC handle and its associated window. This direct assignment does not update the corresponding state in the wine server, leading to inconsistencies between client and server. Signed-off-by: chenzhengyong <chenzhengyong(a)uniontech.com> --- dlls/imm32/ime.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/dlls/imm32/ime.c b/dlls/imm32/ime.c index 1487c847e00..65f46f20550 100644 --- a/dlls/imm32/ime.c +++ b/dlls/imm32/ime.c @@ -327,8 +327,6 @@ static void ime_ui_update_window( INPUTCONTEXT *ctx, HWND hwnd ) RedrawWindow( hwnd, NULL, NULL, RDW_ERASENOW | RDW_INVALIDATE ); } free( str ); - - ctx->hWnd = GetFocus(); } static void ime_ui_composition( HIMC himc, HWND hwnd, LPARAM lparam ) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9097
participants (2)
-
chenzhengyong -
zhengyong chen (@chenzhengyong)