diff options
Diffstat (limited to 'ui/aura_shell/shell.cc')
-rw-r--r-- | ui/aura_shell/shell.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ui/aura_shell/shell.cc b/ui/aura_shell/shell.cc index 51c1b99..b9aaca5 100644 --- a/ui/aura_shell/shell.cc +++ b/ui/aura_shell/shell.cc @@ -120,8 +120,6 @@ Shell::Shell(ShellDelegate* delegate) delegate_(delegate) { aura::RootWindow::GetInstance()->SetEventFilter( new internal::RootWindowEventFilter); - aura::RootWindow::GetInstance()->SetStackingClient( - new internal::StackingController); } Shell::~Shell() { @@ -192,10 +190,8 @@ void Shell::Init() { (*i)->Show(); } - internal::StackingController* stacking_controller = - static_cast<internal::StackingController*>( - root_window->stacking_client()); - stacking_controller->Init(); + // This is created after the special containers, since it expects them. + stacking_controller_.reset(new internal::StackingController); internal::RootWindowLayoutManager* root_window_layout = new internal::RootWindowLayoutManager(root_window); |