diff --git a/shell/browser/native_window_views.cc b/shell/browser/native_window_views.cc index a4169343d025..2dd79ef41ea6 100644 --- a/shell/browser/native_window_views.cc +++ b/shell/browser/native_window_views.cc @@ -654,10 +654,8 @@ bool NativeWindowViews::MoveAbove(const std::string& sourceId) { if (!::IsWindow(otherWindow)) return false; - gfx::Point pos = GetPosition(); - gfx::Size size = GetSize(); - ::SetWindowPos(GetAcceleratedWidget(), otherWindow, pos.x(), pos.y(), - size.width(), size.height(), + ::SetWindowPos(GetAcceleratedWidget(), GetWindow(otherWindow, GW_HWNDPREV), 0, + 0, 0, 0, SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW); #elif defined(USE_X11) if (!IsWindowValid(id.id))