summaryrefslogtreecommitdiffstats
path: root/ash/wm
diff options
context:
space:
mode:
Diffstat (limited to 'ash/wm')
-rw-r--r--ash/wm/workspace/workspace_layout_manager.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ash/wm/workspace/workspace_layout_manager.cc b/ash/wm/workspace/workspace_layout_manager.cc
index bb25f35..41fae51 100644
--- a/ash/wm/workspace/workspace_layout_manager.cc
+++ b/ash/wm/workspace/workspace_layout_manager.cc
@@ -77,6 +77,11 @@ void WorkspaceLayoutManager::OnWindowAddedToLayout(Window* child) {
windows_.insert(child);
child->AddObserver(this);
window_state->AddObserver(this);
+ // TODO(oshima): This is necessary as the call in
+ // AdjustWindowBoundsWhenAdded is skipped when the bounds is
+ // empty. Investigate if we can eliminate this dup.
+ if (!window_state->is_dragged())
+ SetMaximizedOrFullscreenBounds(window_state);
UpdateShelfVisibility();
UpdateFullscreenState();
WindowPositioner::RearrangeVisibleWindowOnShow(child);