summaryrefslogtreecommitdiffstats
path: root/ash/wm/shadow_controller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/wm/shadow_controller.cc')
-rw-r--r--ash/wm/shadow_controller.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ash/wm/shadow_controller.cc b/ash/wm/shadow_controller.cc
index bbf5550..718ef15 100644
--- a/ash/wm/shadow_controller.cc
+++ b/ash/wm/shadow_controller.cc
@@ -72,11 +72,11 @@ ShadowController::ShadowController()
: ALLOW_THIS_IN_INITIALIZER_LIST(observer_manager_(this)) {
aura::Env::GetInstance()->AddObserver(this);
// Watch for window activation changes.
- Shell::GetRootWindow()->AddObserver(this);
+ Shell::GetPrimaryRootWindow()->AddObserver(this);
}
ShadowController::~ShadowController() {
- Shell::GetRootWindow()->RemoveObserver(this);
+ Shell::GetPrimaryRootWindow()->RemoveObserver(this);
aura::Env::GetInstance()->RemoveObserver(this);
}