| Index: ash/common/wm/default_state.cc
|
| diff --git a/ash/common/wm/default_state.cc b/ash/common/wm/default_state.cc
|
| index 2b5a5893d21d621e2cbe1f67c7383667f6d6b197..d7e49d9579bb57bb16e98241e359238de9cefeaf 100644
|
| --- a/ash/common/wm/default_state.cc
|
| +++ b/ash/common/wm/default_state.cc
|
| @@ -682,8 +682,13 @@ void DefaultState::UpdateBoundsFromState(WindowState* window_state,
|
| bounds_in_parent = window->GetBounds();
|
| }
|
| // Make sure that part of the window is always visible.
|
| - wm::AdjustBoundsToEnsureMinimumWindowVisibility(work_area_in_parent,
|
| - &bounds_in_parent);
|
| + if (!window_state->is_dragged()) {
|
| + // Avoid doing this while the window is being dragged as its root
|
| + // window hasn't been updated yet in the case of dragging to another
|
| + // display. crbug.com/666836.
|
| + wm::AdjustBoundsToEnsureMinimumWindowVisibility(work_area_in_parent,
|
| + &bounds_in_parent);
|
| + }
|
| break;
|
| }
|
| case WINDOW_STATE_TYPE_MAXIMIZED:
|
|
|