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

Unified Diff: components/exo/shell_surface.cc

Issue 2968783002: exo: Fix dragging regression (Closed)
Patch Set: Created 3 years, 6 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 565afe40560b9392a8a78bb158febb303d20936b..b4dcedeca8284f1cd49543daa407c79624e6abe4 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -1269,7 +1269,7 @@ aura::Window* ShellSurface::GetDragWindow() {
return widget_->GetNativeWindow();
case BoundsMode::CLIENT:
- return host_window();
+ return root_surface() ? root_surface()->window() : nullptr;
case BoundsMode::FIXED:
return nullptr;
« 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