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

Unified Diff: ui/display/chromeos/display_configurator.cc

Issue 2152303002: Allow idle/suspend with 3+ monitors attached (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-power-state
Patch Set: . Created 4 years, 5 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 | ui/display/chromeos/display_configurator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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";
« no previous file with comments | « no previous file | ui/display/chromeos/display_configurator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698