summaryrefslogtreecommitdiffstats
path: root/ui/views/widget/widget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/views/widget/widget.cc')
-rw-r--r--ui/views/widget/widget.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index 3f780b7..cbde2a2 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -424,7 +424,7 @@ void Widget::CenterWindow(const gfx::Size& size) {
void Widget::SetBoundsConstrained(const gfx::Rect& bounds) {
gfx::Rect work_area =
- gfx::Screen::GetMonitorWorkAreaNearestPoint(bounds.origin());
+ gfx::Screen::GetMonitorNearestPoint(bounds.origin()).work_area();
if (work_area.IsEmpty()) {
SetBounds(bounds);
} else {