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() { |