Index: views/widget/widget_win.cc |
diff --git a/views/widget/widget_win.cc b/views/widget/widget_win.cc |
index 8bc3c2c41bf6f8a44e5d70890d9a7b4d92b1a224..08dbe9206368785ab1c09fad73d99f20da8576ff 100644 |
--- a/views/widget/widget_win.cc |
+++ b/views/widget/widget_win.cc |
@@ -239,8 +239,9 @@ void WidgetWin::GetBounds(gfx::Rect* out, bool including_frame) const { |
} |
void WidgetWin::SetBounds(const gfx::Rect& bounds) { |
- if (IsZoomed()) |
- ShowWindow(SW_SHOWNOACTIVATE); |
+ LONG style = GetWindowLong(GWL_STYLE); |
+ if (style & WS_MAXIMIZE) |
+ SetWindowLong(GWL_STYLE, style & ~WS_MAXIMIZE); |
SetWindowPos(NULL, bounds.x(), bounds.y(), bounds.width(), bounds.height(), |
SWP_NOACTIVATE | SWP_NOZORDER); |
} |