Index: ash/mus/root_window_controller.cc |
diff --git a/ash/mus/root_window_controller.cc b/ash/mus/root_window_controller.cc |
index ea935decc0f38a6554e01b58394a4eb59cd536fc..f00b8655784b8a689fa9797a05993050e7755a92 100644 |
--- a/ash/mus/root_window_controller.cc |
+++ b/ash/mus/root_window_controller.cc |
@@ -183,6 +183,10 @@ gfx::Rect RootWindowController::CalculateDefaultBounds( |
::ui::mojom::WindowManager::kInitialBounds_Property); |
} |
+ if (GetWindowShowState(window) == ui::mojom::ShowState::FULLSCREEN) { |
+ return gfx::Rect(0, 0, root_->bounds().width(), root_->bounds().height()); |
+ } |
+ |
int width, height; |
const gfx::Size pref = GetWindowPreferredSize(window); |
if (pref.IsEmpty()) { |