Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2012)

Unified Diff: ash/display/multi_display_manager.cc

Issue 11066130: Fix for out-of-sync scale factor issue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated comment Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/display/multi_display_manager.cc
diff --git a/ash/display/multi_display_manager.cc b/ash/display/multi_display_manager.cc
index ef20b0e6302372e940877892eaa3e4adfd92e34a..bac9018f8f58b9c46d52bf89c79ff852708798a0 100644
--- a/ash/display/multi_display_manager.cc
+++ b/ash/display/multi_display_manager.cc
@@ -290,7 +290,9 @@ const gfx::Display& MultiDisplayManager::GetDisplayNearestWindow(
return DisplayController::GetPrimaryDisplay();
const RootWindow* root = window->GetRootWindow();
MultiDisplayManager* manager = const_cast<MultiDisplayManager*>(this);
- return root ? manager->FindDisplayForRootWindow(root) : GetInvalidDisplay();
+ return root ?
+ manager->FindDisplayForRootWindow(root) :
+ DisplayController::GetPrimaryDisplay();
}
const gfx::Display& MultiDisplayManager::GetDisplayNearestPoint(

Powered by Google App Engine
This is Rietveld 408576698