Index: components/exo/shell_surface.cc |
diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc |
index 7fe884ddec4f26815a3096cd588f82293181620f..c84d134ab6a32924dd2d72a7585a0bf61f041a74 100644 |
--- a/components/exo/shell_surface.cc |
+++ b/components/exo/shell_surface.cc |
@@ -1129,8 +1129,9 @@ void ShellSurface::CreateShellSurfaceWidget(ui::WindowShowState show_state) { |
params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW; |
params.show_state = show_state; |
// Make shell surface a transient child if |parent_| has been set. |
- params.parent = |
- parent_ ? parent_ : WMHelper::GetInstance()->GetContainer(container_); |
+ params.parent = parent_ ? parent_ |
+ : WMHelper::GetInstance()->GetContainer( |
+ primary_display_id_, container_); |
params.bounds = gfx::Rect(origin_, gfx::Size()); |
bool activatable = activatable_; |
// ShellSurfaces in system modal container are only activatable if input |