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

Unified Diff: components/exo/shell_surface.cc

Issue 2179243002: exo: Set widget parent to target root window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shell_surface.cc
diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
index 06c277d2b644693846f47f9f7e80cee1a638d89e..c2e55ee54d150fc69449903f81b6e22b6b5c0317 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -887,7 +887,7 @@ void ShellSurface::CreateShellSurfaceWidget(ui::WindowShowState show_state) {
params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
params.show_state = show_state;
params.parent =
- ash::Shell::GetContainer(ash::Shell::GetPrimaryRootWindow(), container_);
+ ash::Shell::GetContainer(ash::Shell::GetTargetRootWindow(), container_);
reveman 2016/07/26 14:46:01 When |parent_| is set then this needs to be the sa
Dominik Laskowski 2016/07/26 23:13:38 Good point. See my reply below.
params.bounds = initial_bounds_;
oshima 2016/07/26 01:07:11 This isn't correct (at least for arc++). I think
reveman 2016/07/26 14:46:01 Initial bounds are always "gfx::Rect(1, 1)" for ar
oshima 2016/07/26 20:40:56 If the initial bounds is set in screen coordinate,
reveman 2016/07/26 21:38:33 Initial bounds is parent origin + offset provided
Dominik Laskowski 2016/07/26 23:13:38 Initial bounds are in screen coordinates regardles
bool activatable = activatable_;
// ShellSurfaces in system modal container are only activatable if input
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698