| Index: ui/views/widget/desktop_aura/desktop_screen_position_client.cc
|
| diff --git a/ui/views/widget/desktop_aura/desktop_screen_position_client.cc b/ui/views/widget/desktop_aura/desktop_screen_position_client.cc
|
| index 12be4ccc97cfd0fdb3e96e4bc5630fa577aad1f6..2ca556c39794c521f974bdb14741f0ad4b788f1e 100644
|
| --- a/ui/views/widget/desktop_aura/desktop_screen_position_client.cc
|
| +++ b/ui/views/widget/desktop_aura/desktop_screen_position_client.cc
|
| @@ -68,19 +68,16 @@ void DesktopScreenPositionClient::SetBounds(
|
| const gfx::Rect& bounds,
|
| const gfx::Display& display) {
|
| // TODO: Use the 3rd parameter, |display|.
|
| - gfx::Point origin = bounds.origin();
|
| aura::RootWindow* root = window->GetRootWindow();
|
| - aura::Window::ConvertPointToTarget(window->parent(), root, &origin);
|
| -
|
| - if (window->type() == aura::client::WINDOW_TYPE_CONTROL) {
|
| - window->SetBounds(gfx::Rect(origin, bounds.size()));
|
| - return;
|
| - }
|
|
|
| if (PositionWindowInScreenCoordinates(window)) {
|
| // The caller expects windows we consider "embedded" to be placed in the
|
| // screen coordinate system. So we need to offset the root window's
|
| // position (which is in screen coordinates) from these bounds.
|
| +
|
| + gfx::Point origin = bounds.origin();
|
| + aura::Window::ConvertPointToTarget(window->parent(), root, &origin);
|
| +
|
| gfx::Point host_origin = GetOrigin(root);
|
| origin.Offset(-host_origin.x(), -host_origin.y());
|
| window->SetBounds(gfx::Rect(origin, bounds.size()));
|
|
|