Chromium Code Reviews| 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 |