summaryrefslogtreecommitdiffstats
path: root/ui/aura/root_window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/aura/root_window.cc')
-rw-r--r--ui/aura/root_window.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 0c0b79d..b9712bd 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -452,7 +452,9 @@ void RootWindow::SetTransform(const gfx::Transform& transform) {
// RootWindow, ui::EventTarget implementation:
ui::EventTarget* RootWindow::GetParentTarget() {
- return Env::GetInstance();
+ return client::GetEventClient(this) ?
+ client::GetEventClient(this)->GetToplevelEventTarget() :
+ Env::GetInstance();
}
////////////////////////////////////////////////////////////////////////////////