| Index: ui/display/screen_base.cc
|
| diff --git a/ui/display/screen_base.cc b/ui/display/screen_base.cc
|
| index 21c8c270f2c21cbf3d29c3f9ef696dceb51e5fd3..297f9108958d827bb1a1c6e3c142e4092c75037d 100644
|
| --- a/ui/display/screen_base.cc
|
| +++ b/ui/display/screen_base.cc
|
| @@ -58,6 +58,9 @@ const std::vector<Display>& ScreenBase::GetAllDisplays() const {
|
| }
|
|
|
| Display ScreenBase::GetDisplayMatching(const gfx::Rect& match_rect) const {
|
| + if (match_rect.IsEmpty())
|
| + return GetDisplayNearestPoint(match_rect.origin());
|
| +
|
| const Display* match =
|
| FindDisplayWithBiggestIntersection(display_list_.displays(), match_rect);
|
| return match ? *match : GetPrimaryDisplay();
|
|
|