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

Unified Diff: components/exo/wm_helper_ash.cc

Issue 2860863004: exo: Confine windows to primary display (Closed)
Patch Set: Add TODOs Created 3 years, 7 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
« no previous file with comments | « components/exo/shell_surface.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/wm_helper_ash.cc
diff --git a/components/exo/wm_helper_ash.cc b/components/exo/wm_helper_ash.cc
index a7ae4969d558e709bc954cb6a0b46288e3054648..4474033ce1d21804ccfaf79e5244ca68b5e2e682 100644
--- a/components/exo/wm_helper_ash.cc
+++ b/components/exo/wm_helper_ash.cc
@@ -60,7 +60,9 @@ const display::ManagedDisplayInfo WMHelperAsh::GetDisplayInfo(
}
aura::Window* WMHelperAsh::GetContainer(int container_id) {
- return ash::Shell::GetContainer(ash::Shell::GetRootWindowForNewWindows(),
+ // TODO(domlaskowski): Use target root window once multi-display support lands
+ // in ARC. See crbug.com/718627.
+ return ash::Shell::GetContainer(ash::Shell::GetPrimaryRootWindow(),
container_id);
}
« no previous file with comments | « components/exo/shell_surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698