summaryrefslogtreecommitdiffstats
path: root/ash/accelerators/exit_warning_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/accelerators/exit_warning_handler.cc')
-rw-r--r--ash/accelerators/exit_warning_handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ash/accelerators/exit_warning_handler.cc b/ash/accelerators/exit_warning_handler.cc
index 864286b..6ea635a 100644
--- a/ash/accelerators/exit_warning_handler.cc
+++ b/ash/accelerators/exit_warning_handler.cc
@@ -165,7 +165,7 @@ void ExitWarningHandler::CancelTimer() {
void ExitWarningHandler::Show() {
if (widget_)
return;
- aura::RootWindow* root_window = Shell::GetActiveRootWindow();
+ aura::RootWindow* root_window = Shell::GetTargetRootWindow();
ExitWarningWidgetDelegateView* delegate = new ExitWarningWidgetDelegateView;
gfx::Size rs = root_window->bounds().size();
gfx::Size ps = delegate->GetPreferredSize();