Windows: Fix placement of IME window (issue #1610)

This commit is contained in:
Marshall Greenblatt
2015-04-24 14:11:32 +03:00
parent e8e1f98ee0
commit 21c1d3e641
2 changed files with 19 additions and 0 deletions

View File

@@ -132,4 +132,10 @@ patches = [
'name': 'webkit_progresstracker_426510',
'path': '../third_party/WebKit/Source/core/loader/',
},
{
# Fix placement of IME window on Windows.
# https://bitbucket.org/chromiumembedded/cef/issue/1610
'name': 'ime_1610',
'path': '../ui/base/ime/',
},
]

View File

@@ -0,0 +1,13 @@
diff --git input_method_win.cc input_method_win.cc
index f6bc4c0..9c382fe 100644
--- input_method_win.cc
+++ input_method_win.cc
@@ -25,7 +25,7 @@ static const size_t kExtraNumberOfChars = 20;
InputMethodWin::InputMethodWin(internal::InputMethodDelegate* delegate,
HWND toplevel_window_handle)
- : toplevel_window_handle_(toplevel_window_handle),
+ : toplevel_window_handle_(::GetAncestor(toplevel_window_handle, GA_ROOT)),
pending_requested_direction_(base::i18n::UNKNOWN_DIRECTION),
accept_carriage_return_(false),
active_(false),