| Index: components/exo/shell_surface.cc
|
| diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
|
| index dac956f21e5d9d68bc0c625334506f40ca8ec632..47b6a5da831570c3fba734eaa45f23593a653eb5 100644
|
| --- a/components/exo/shell_surface.cc
|
| +++ b/components/exo/shell_surface.cc
|
| @@ -1158,8 +1158,7 @@ void ShellSurface::CreateShellSurfaceWidget(ui::WindowShowState show_state) {
|
|
|
| // Allow the client to request bounds that do not fill the entire work area
|
| // when maximized, or the entire display when fullscreen.
|
| - window_state->set_allow_set_bounds_in_maximized(
|
| - bounds_mode_ == BoundsMode::CLIENT);
|
| + window_state->set_allow_set_bounds_direct(bounds_mode_ == BoundsMode::CLIENT);
|
|
|
| // Notify client of initial state if different than normal.
|
| if (window_state->GetStateType() != ash::wm::WINDOW_STATE_TYPE_NORMAL &&
|
| @@ -1403,7 +1402,7 @@ void ShellSurface::UpdateWidgetBounds() {
|
| ash::wm::WindowState* window_state =
|
| ash::wm::GetWindowState(widget_->GetNativeWindow());
|
| if (window_state->IsMaximizedOrFullscreenOrPinned() &&
|
| - !window_state->allow_set_bounds_in_maximized()) {
|
| + !window_state->allow_set_bounds_direct()) {
|
| return;
|
| }
|
|
|
| @@ -1548,7 +1547,7 @@ void ShellSurface::UpdateShadow() {
|
| // not cover the entire background, e.g. overview mode).
|
| if ((widget_->IsFullscreen() || widget_->IsMaximized() ||
|
| underlay_capture_events) &&
|
| - ash::wm::GetWindowState(window)->allow_set_bounds_in_maximized() &&
|
| + ash::wm::GetWindowState(window)->allow_set_bounds_direct() &&
|
| window->layer()->GetTargetTransform().IsIdentity()) {
|
| if (shadow_underlay_in_surface_) {
|
| shadow_underlay_bounds = gfx::Rect(surface_->window()->bounds().size());
|
|
|