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

Unified Diff: ash/display/window_tree_host_manager.cc

Issue 1631023002: Fix moving the mouse between two displays after the secondary display becomes primary. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 4 years, 11 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/window_tree_host_manager.cc
diff --git a/ash/display/window_tree_host_manager.cc b/ash/display/window_tree_host_manager.cc
index 6f2360776bcc7a057e4c106735ffa260175fc42c..f99f7a41b1c44ef3c24cdeefc658b9626ac3c977 100644
--- a/ash/display/window_tree_host_manager.cc
+++ b/ash/display/window_tree_host_manager.cc
@@ -457,13 +457,8 @@ void WindowTreeHostManager::SetPrimaryDisplay(
new_primary_display.GetWorkAreaInsets());
// Update the dispay manager with new display info.
- std::vector<DisplayInfo> display_info_list;
- display_info_list.push_back(
- display_manager->GetDisplayInfo(primary_display_id));
- display_info_list.push_back(
- display_manager->GetDisplayInfo(ScreenUtil::GetSecondaryDisplay().id()));
GetDisplayManager()->set_force_bounds_changed(true);
- GetDisplayManager()->UpdateDisplays(display_info_list);
stevenjb 2016/01/25 21:42:55 Can we now rename DisplayManager::UpdateDisplays(v
jdufault 2016/01/25 22:48:46 There are some tests that use the method. Given th
+ GetDisplayManager()->UpdateDisplays();
GetDisplayManager()->set_force_bounds_changed(false);
}

Powered by Google App Engine
This is Rietveld 408576698