| Index: ui/views/widget/desktop_aura/desktop_screen_x11.cc
|
| diff --git a/ui/views/widget/desktop_aura/desktop_screen_x11.cc b/ui/views/widget/desktop_aura/desktop_screen_x11.cc
|
| index a72b50380bdd73aba53ce2d2786f3a58db127f03..c47a2d275c5f283f8b989d5138429823ab65db3e 100644
|
| --- a/ui/views/widget/desktop_aura/desktop_screen_x11.cc
|
| +++ b/ui/views/widget/desktop_aura/desktop_screen_x11.cc
|
| @@ -249,10 +249,10 @@ gfx::Display DesktopScreenX11::GetDisplayNearestWindow(
|
| // created before we create the aura::WindowEventDispatcher. So we ask what
|
| // the DRWHX11 believes the window bounds are instead of going through the
|
| // aura::Window's screen bounds.
|
| - aura::WindowEventDispatcher* dispatcher = window->GetDispatcher();
|
| - if (dispatcher) {
|
| + aura::WindowTreeHost* host = window->GetHost();
|
| + if (host) {
|
| DesktopWindowTreeHostX11* rwh = DesktopWindowTreeHostX11::GetHostForXID(
|
| - dispatcher->host()->GetAcceleratedWidget());
|
| + host->GetAcceleratedWidget());
|
| if (rwh)
|
| return GetDisplayMatching(rwh->GetX11RootWindowBounds());
|
| }
|
|
|