| Index: ash/wm/frame_painter.cc
|
| diff --git a/ash/wm/frame_painter.cc b/ash/wm/frame_painter.cc
|
| index 12d74dce820876d993712cc100e803e931561301..d36617c7b216fe5a5d62534998b5797454855bbb 100644
|
| --- a/ash/wm/frame_painter.cc
|
| +++ b/ash/wm/frame_painter.cc
|
| @@ -674,7 +674,8 @@ int FramePainter::AdjustFrameHitCodeForMaximizedModes(int hit_code) {
|
| // be active.
|
| const gfx::Rect& bounds = frame_->GetWindowBoundsInScreen();
|
| const gfx::Rect& screen =
|
| - gfx::Screen::GetDisplayMatching(bounds).work_area();
|
| + gfx::Screen::GetDisplayMatching(
|
| + ash::Shell::GetRootNativeView(), bounds).work_area();
|
| if (bounds.y() == screen.y() && bounds.bottom() == screen.bottom()) {
|
| // The window is probably either left or right maximized.
|
| if (bounds.x() == screen.x()) {
|
|
|