diff options
Diffstat (limited to 'ash/shell/window_watcher.cc')
-rw-r--r-- | ash/shell/window_watcher.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ash/shell/window_watcher.cc b/ash/shell/window_watcher.cc index cbac740..a3d99f1 100644 --- a/ash/shell/window_watcher.cc +++ b/ash/shell/window_watcher.cc @@ -15,8 +15,9 @@ namespace shell { WindowWatcher::WindowWatcher() : window_(ash::Shell::GetInstance()->launcher()->window_container()), - panel_container_(ash::Shell::GetInstance()->GetContainer( - ash::internal::kShellWindowId_PanelContainer)) { + panel_container_(ash::Shell::GetContainer( + Shell::GetPrimaryRootWindow(), + internal::kShellWindowId_PanelContainer)) { window_->AddObserver(this); panel_container_->AddObserver(this); } |