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

Unified Diff: components/exo/shell_surface.cc

Issue 2780623002: exo: Fix multi-display hardware cursor (Closed)
Patch Set: Remove capture on mouse enter Created 3 years, 8 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: components/exo/shell_surface.cc
diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
index 7427457d0bfde12f93dc1aa9b604650ec6233bba..190e3fbbc8ce0b2330f370c305259f4043bb8f45 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -1151,8 +1151,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

Powered by Google App Engine
This is Rietveld 408576698