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

Unified Diff: ash/wm/workspace/colored_window_controller.cc

Issue 11150031: Avoid using ScreenPositionController in ColoredWindowController's ctor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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: ash/wm/workspace/colored_window_controller.cc
diff --git a/ash/wm/workspace/colored_window_controller.cc b/ash/wm/workspace/colored_window_controller.cc
index 055c67fa91750b9dfc8fdb9a8b3187fc49b4f4a0..0918ea2d5cb3598adf6cdf37be0cc2941f71753f 100644
--- a/ash/wm/workspace/colored_window_controller.cc
+++ b/ash/wm/workspace/colored_window_controller.cc
@@ -65,7 +65,9 @@ ColoredWindowController::ColoredWindowController(aura::Window* parent,
widget->GetNativeView()->SetProperty(aura::client::kAnimationsDisabledKey,
true);
widget->GetNativeView()->SetName(window_name);
- widget->SetBounds(parent->bounds());
+ // Sometimes |parent| has kUsesScreenCoordinatesKey which causes a crash
+ // if parent belongs to the secondary display.
+ widget->GetNativeWindow()->SetBounds(parent->bounds());
}
ColoredWindowController::~ColoredWindowController() {
« 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