| Index: ui/views/widget/widget.cc
|
| diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
|
| index 361a39904a2b58b9cc1862fe805fc7e5802ccd1c..71ff394e63eabc104a0754707069551b77574a63 100644
|
| --- a/ui/views/widget/widget.cc
|
| +++ b/ui/views/widget/widget.cc
|
| @@ -467,7 +467,8 @@ void Widget::CenterWindow(const gfx::Size& size) {
|
|
|
| void Widget::SetBoundsConstrained(const gfx::Rect& bounds) {
|
| gfx::Rect work_area =
|
| - gfx::Screen::GetDisplayNearestPoint(bounds.origin()).work_area();
|
| + gfx::Screen::GetScreenFor(GetNativeView())->GetDisplayNearestPoint(
|
| + bounds.origin()).work_area();
|
| if (work_area.IsEmpty()) {
|
| SetBounds(bounds);
|
| } else {
|
|
|