Index: ui/display/chromeos/display_configurator.cc |
diff --git a/ui/display/chromeos/display_configurator.cc b/ui/display/chromeos/display_configurator.cc |
index c12f4073e5d0a779fb1c24ea5d52de72bb98f982..2da0946470a4f70d825e59e5b1ac67bf8816b159 100644 |
--- a/ui/display/chromeos/display_configurator.cc |
+++ b/ui/display/chromeos/display_configurator.cc |
@@ -296,10 +296,11 @@ bool DisplayConfigurator::DisplayLayoutManagerImpl::GetDisplayLayout( |
} |
case MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED: |
case MULTIPLE_DISPLAY_STATE_MULTI_EXTENDED: { |
- if ((new_display_state == MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED && |
- states.size() != 2 && num_on_displays != 2) || |
- (new_display_state == MULTIPLE_DISPLAY_STATE_MULTI_EXTENDED && |
- num_on_displays <= 2)) { |
+ // In docked mode (with internal display + 2 external displays) the state |
+ // will be DUAL_EXTENDED with internal display turned off and the 2 |
+ // external displays turned on. |
oshima
2016/07/20 14:37:53
ack. thank you for clarificatin.
|
+ if (new_display_state == MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED && |
+ states.size() != 2 && num_on_displays != 2) { |
LOG(WARNING) << "Ignoring request to enter extended mode with " |
<< states.size() << " connected display(s) and " |
<< num_on_displays << " turned on"; |