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

Unified Diff: components/exo/shell_surface.cc

Issue 2847763002: [M58] exo: Confine windows to primary display (Closed)
Patch Set: Rebase 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') | 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 57460ab96544ec622870c9679739a458ef5dcbef..97d7de0529db51deea098249c2d89aa9e3ae594a 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -1445,7 +1445,7 @@ void ShellSurface::UpdateWidgetBounds() {
DCHECK(!ignore_window_bounds_changes_);
ignore_window_bounds_changes_ = true;
if (widget_->GetWindowBoundsInScreen() != new_widget_bounds)
- widget_->SetBounds(new_widget_bounds);
+ widget_->GetNativeWindow()->SetBounds(new_widget_bounds);
ignore_window_bounds_changes_ = false;
}
« no previous file with comments | « no previous file | components/exo/wm_helper_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698