Index: athena/wm/window_manager_impl.cc |
diff --git a/athena/wm/window_manager_impl.cc b/athena/wm/window_manager_impl.cc |
index 37daf437242a9a79c8a042e3c4521cf90b0632a1..59b25a11cb180052c16aff3eea0fb950f7fa27dc 100644 |
--- a/athena/wm/window_manager_impl.cc |
+++ b/athena/wm/window_manager_impl.cc |
@@ -19,6 +19,8 @@ |
#include "base/observer_list.h" |
#include "ui/aura/layout_manager.h" |
#include "ui/aura/window.h" |
+#include "ui/gfx/display.h" |
+#include "ui/gfx/screen.h" |
#include "ui/wm/core/shadow_controller.h" |
#include "ui/wm/core/window_util.h" |
#include "ui/wm/core/wm_state.h" |
@@ -147,7 +149,8 @@ WindowManagerImpl::~WindowManagerImpl() { |
void WindowManagerImpl::Layout() { |
if (!container_) |
return; |
- gfx::Rect bounds = gfx::Rect(container_->bounds().size()); |
+ gfx::Rect bounds = |
+ gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().work_area(); |
const aura::Window::Windows& children = container_->children(); |
for (aura::Window::Windows::const_iterator iter = children.begin(); |
iter != children.end(); |