diff options
-rw-r--r-- | ash/display/display_controller.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ash/display/display_controller.cc b/ash/display/display_controller.cc index d87252d..b7361c3 100644 --- a/ash/display/display_controller.cc +++ b/ash/display/display_controller.cc @@ -297,8 +297,10 @@ DisplayController::GetAllRootWindowControllers() { } void DisplayController::SetDefaultDisplayLayout(const DisplayLayout& layout) { - if (default_display_layout_.position != layout.position || - default_display_layout_.offset != layout.offset) { + CommandLine* command_line = CommandLine::ForCurrentProcess(); + if (!command_line->HasSwitch(switches::kAshSecondaryDisplayLayout) && + (default_display_layout_.position != layout.position || + default_display_layout_.offset != layout.offset)) { default_display_layout_ = layout; NotifyDisplayConfigurationChanging(); UpdateDisplayBoundsForLayout(); |