Index: ui/views/widget/desktop_aura/desktop_screen_win.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_screen_win.cc b/ui/views/widget/desktop_aura/desktop_screen_win.cc |
index 93721bce353b5f4b4fe981c291d2347ac4119be1..f1a7767e47bd370b46d548514dc84e97bf8b8426 100644 |
--- a/ui/views/widget/desktop_aura/desktop_screen_win.cc |
+++ b/ui/views/widget/desktop_aura/desktop_screen_win.cc |
@@ -53,8 +53,8 @@ gfx::Display DesktopScreenWin::GetDisplayMatching( |
} |
HWND DesktopScreenWin::GetHWNDFromNativeView(gfx::NativeView window) const { |
- aura::RootWindow* root_window = window->GetRootWindow(); |
- return root_window ? root_window->GetAcceleratedWidget() : NULL; |
+ aura::WindowEventDispatcher* dispatcher = window->GetDispatcher(); |
+ return dispatcher ? dispatcher->GetAcceleratedWidget() : NULL; |
} |
gfx::NativeWindow DesktopScreenWin::GetNativeWindowFromHWND(HWND hwnd) const { |