| Index: ui/platform_window/win/win_window.cc
|
| diff --git a/ui/platform_window/win/win_window.cc b/ui/platform_window/win/win_window.cc
|
| index 802f2d79a21c3e060e19732bf930666268385075..1282b091308eba83b07fdd61f51480ec6d5142a8 100644
|
| --- a/ui/platform_window/win/win_window.cc
|
| +++ b/ui/platform_window/win/win_window.cc
|
| @@ -74,9 +74,11 @@ void WinWindow::SetBounds(const gfx::Rect& bounds) {
|
| GetWindowLong(hwnd(), GWL_STYLE),
|
| GetWindowLong(hwnd(), GWL_EXSTYLE),
|
| bounds);
|
| + unsigned int flags = SWP_NOREPOSITION;
|
| + if (!::IsWindowVisible(hwnd()))
|
| + flags |= SWP_NOACTIVATE;
|
| SetWindowPos(hwnd(), NULL, window_bounds.x(), window_bounds.y(),
|
| - window_bounds.width(), window_bounds.height(),
|
| - SWP_NOREPOSITION);
|
| + window_bounds.width(), window_bounds.height(), flags);
|
| }
|
|
|
| gfx::Rect WinWindow::GetBounds() {
|
|
|