Chromium Code Reviews| Index: components/exo/shell_surface.cc |
| diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc |
| index 72f11c53c45055919cd6cbcda9f83703788b3c8d..50a23de79afbf588d6747a0983e5bf21f8693708 100644 |
| --- a/components/exo/shell_surface.cc |
| +++ b/components/exo/shell_surface.cc |
| @@ -931,6 +931,7 @@ void ShellSurface::CreateShellSurfaceWidget(ui::WindowShowState show_state) { |
| // Start tracking changes to window bounds and window state. |
| window->AddObserver(this); |
| ash::wm::WindowState* window_state = ash::wm::GetWindowState(window); |
| + window_state->set_allow_set_bounds_in_maximized(true); |
| window_state->AddObserver(this); |
| // Notify client of initial state if different than normal. |
| if (window_state->GetStateType() != ash::wm::WINDOW_STATE_TYPE_NORMAL && |
| @@ -1153,7 +1154,7 @@ void ShellSurface::UpdateWidgetBounds() { |
| DCHECK(widget_); |
| // Return early if the shell is currently managing the bounds of the widget. |
| - if (widget_->IsMaximized() || widget_->IsFullscreen() || IsResizing()) |
| + if (IsResizing()) |
|
reveman
2016/08/11 19:07:25
I guess it's fine to remove this thanks to the pen
oshima
2016/08/11 22:48:21
Done.
|
| return; |
| // Return early if there is pending configure requests. |