Index: ash/wm/gestures/long_press_affordance_handler.cc |
diff --git a/ash/wm/gestures/long_press_affordance_handler.cc b/ash/wm/gestures/long_press_affordance_handler.cc |
index f776e0122f0f9e50eb487b608db5ded6a961aa94..b8370a74b9df26c14640e0804997cd4c8d837294 100644 |
--- a/ash/wm/gestures/long_press_affordance_handler.cc |
+++ b/ash/wm/gestures/long_press_affordance_handler.cc |
@@ -68,9 +68,9 @@ views::Widget* CreateAffordanceWidget(aura::RootWindow* root_window) { |
params.transparent = true; |
widget->Init(params); |
widget->SetOpacity(0xFF); |
- widget->GetNativeWindow()->SetParent( |
- ash::GetRootWindowController(root_window)->GetContainer( |
- ash::internal::kShellWindowId_OverlayContainer)); |
+ ash::GetRootWindowController(root_window)->GetContainer( |
+ ash::internal::kShellWindowId_OverlayContainer)->AddChild( |
+ widget->GetNativeWindow()); |
return widget; |
} |