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@uniontech.com
-- v3: imm32: Do not overwrite input context window with GetFocus() in ime_ui_update_window.