Chromium Code Reviews| 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..265f39b5ed5fbdd1b0a21e9d2c1a07942bf52621 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. |
|
oshima
2016/12/01 18:59:43
would you mind adding a reference to bug?
afakhry
2016/12/01 20:58:03
Done.
|
| + wm::AdjustBoundsToEnsureMinimumWindowVisibility(work_area_in_parent, |
| + &bounds_in_parent); |
| + } |
| break; |
| } |
| case WINDOW_STATE_TYPE_MAXIMIZED: |