From 994b06a97d5080a5175507ff33a7477006f3e8cb Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Fri, 2 Sep 2016 05:53:20 +0200 Subject: [PATCH] user32: Do not create IME window for HWND_MESSAGE windows. Signed-off-by: Sebastian Lackner Signed-off-by: Akihiro Sagawa Signed-off-by: Alexandre Julliard --- dlls/user32/win.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/user32/win.c b/dlls/user32/win.c index b65fdd7f52a..a7be4a324ff 100644 --- a/dlls/user32/win.c +++ b/dlls/user32/win.c @@ -1613,7 +1613,8 @@ HWND WIN_CreateWindowEx( CREATESTRUCTW *cs, LPCWSTR className, HINSTANCE module, /* create default IME window */ - if (imm_register_window && !is_desktop_window( hwnd ) && imm_register_window( hwnd )) + if (imm_register_window && !is_desktop_window( hwnd ) && + parent != get_hwnd_message_parent() && imm_register_window( hwnd )) { TRACE("register IME window for %p\n", hwnd); win_set_flags( hwnd, WIN_HAS_IME_WIN, 0 );