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

Unified Diff: components/exo/shell_surface.cc

Issue 2860863004: exo: Confine windows to primary display (Closed)
Patch Set: Created 3 years, 7 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 | components/exo/wm_helper_ash.cc » ('j') | components/exo/wm_helper_ash.cc » ('J')
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 ffa7d00d1871efd3253c2ce536d3e88c61f3c816..3a03b1d011766acc805093141f11f7d3506db70a 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -1528,7 +1528,7 @@ void ShellSurface::UpdateWidgetBounds() {
const gfx::Rect widget_bounds = widget_->GetWindowBoundsInScreen();
if (widget_bounds != new_widget_bounds) {
if (bounds_mode_ != BoundsMode::CLIENT || !resizer_) {
- widget_->SetBounds(new_widget_bounds);
+ widget_->GetNativeWindow()->SetBounds(new_widget_bounds);
UpdateSurfaceBounds();
} else {
// TODO(domlaskowski): Synchronize window state transitions with the
« no previous file with comments | « no previous file | components/exo/wm_helper_ash.cc » ('j') | components/exo/wm_helper_ash.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698