| Index: chrome/browser/ui/ime/ime_window.cc
|
| diff --git a/chrome/browser/ui/ime/ime_window.cc b/chrome/browser/ui/ime/ime_window.cc
|
| index 0e5a428643e87e99b02f1a6e8068fae1dba73759..6818523ca7d1313d31a767bedd3256d508b089b1 100644
|
| --- a/chrome/browser/ui/ime/ime_window.cc
|
| +++ b/chrome/browser/ui/ime/ime_window.cc
|
| @@ -18,6 +18,7 @@
|
| #include "extensions/common/extension.h"
|
| #include "extensions/common/manifest_handlers/icons_handler.h"
|
| #include "ui/display/display.h"
|
| +#include "ui/display/display_finder.h"
|
| #include "ui/display/screen.h"
|
| #include "ui/gfx/image/image.h"
|
|
|
| @@ -100,10 +101,12 @@ void ImeWindow::FollowCursor(const gfx::Rect& cursor_bounds) {
|
| return;
|
|
|
| gfx::Rect screen_bounds =
|
| - display::Screen::GetScreen()->GetPrimaryDisplay().bounds();
|
| + display::FindDisplayNearestPoint(
|
| + display::Screen::GetScreen()->GetAllDisplays(),
|
| + gfx::Point(cursor_bounds.x(), cursor_bounds.y()))->bounds();
|
| gfx::Rect window_bounds = native_window_->GetBounds();
|
| - int screen_width = screen_bounds.width();
|
| - int screen_height = screen_bounds.height();
|
| + int screen_width = screen_bounds.x() + screen_bounds.width();
|
| + int screen_height = screen_bounds.y() + screen_bounds.height();
|
| int width = window_bounds.width();
|
| int height = window_bounds.height();
|
| // By default, aligns the left of the window client area to the left of the
|
|
|