diff options
Diffstat (limited to 'ash/display/screen_ash.cc')
-rw-r--r-- | ash/display/screen_ash.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ash/display/screen_ash.cc b/ash/display/screen_ash.cc index 9d42e49e..d32deb8 100644 --- a/ash/display/screen_ash.cc +++ b/ash/display/screen_ash.cc @@ -234,8 +234,7 @@ gfx::Display ScreenAsh::GetDisplayNearestWindow(gfx::NativeView window) const { return GetPrimaryDisplay(); const RootWindowSettings* rws = GetRootWindowSettings(root_window); if (rws->shutdown) - return GetPrimaryDisplay(); - + return gfx::Display(1); int64 id = rws->display_id; // if id is |kInvaildDisplayID|, it's being deleted. DCHECK(id != gfx::Display::kInvalidDisplayID); |