Index: ash/wm/window_animations.cc |
diff --git a/ash/wm/window_animations.cc b/ash/wm/window_animations.cc |
index 2c080ffe73da49b45f1001e05b422fad1ffc7c64..b3f80e34d66e6dc6664f20fce0dea976a1cb4046 100644 |
--- a/ash/wm/window_animations.cc |
+++ b/ash/wm/window_animations.cc |
@@ -11,6 +11,7 @@ |
#include "ash/ash_switches.h" |
#include "ash/launcher/launcher.h" |
+#include "ash/screen_ash.h" |
#include "ash/shell.h" |
#include "base/command_line.h" |
#include "base/compiler_specific.h" |
@@ -397,6 +398,8 @@ gfx::Rect GetMinimizeRectForWindow(aura::Window* window) { |
gfx::Screen::GetDisplayNearestWindow(window).work_area(); |
target_bounds.SetRect(work_area.right(), work_area.bottom(), 0, 0); |
} |
+ target_bounds = |
+ ScreenAsh::ConvertRectFromScreen(window->parent(), target_bounds); |
return target_bounds; |
} |