Index: ash/wm/workspace/workspace.cc |
diff --git a/ash/wm/workspace/workspace.cc b/ash/wm/workspace/workspace.cc |
index a2c03254b97e8606c15f5c9807a6ffd5e09057d9..48f994f0f9a591629b46c5d61a2afdc0e7eb6436 100644 |
--- a/ash/wm/workspace/workspace.cc |
+++ b/ash/wm/workspace/workspace.cc |
@@ -34,7 +34,7 @@ Workspace::Workspace(WorkspaceManager* manager, |
// Do this so when animating out windows don't extend beyond the bounds. |
window_->layer()->SetMasksToBounds(true); |
window_->Hide(); |
- window_->SetParent(parent); |
+ parent->AddChild(window_); |
window_->SetProperty(internal::kUsesScreenCoordinatesKey, true); |
// The layout-manager cannot be created in the initializer list since it |