Index: ash/wm/workspace/snap_sizer.cc |
diff --git a/ash/wm/workspace/snap_sizer.cc b/ash/wm/workspace/snap_sizer.cc |
index d2641b08d4886e0b2faa561fe5b3f12db3a8d52c..8ee3e1f3fcdad918218454bcba1f6628be59f404 100644 |
--- a/ash/wm/workspace/snap_sizer.cc |
+++ b/ash/wm/workspace/snap_sizer.cc |
@@ -6,6 +6,7 @@ |
#include <cmath> |
+#include "ash/screen_ash.h" |
#include "ash/wm/window_resizer.h" |
#include "ui/aura/window.h" |
#include "ui/gfx/screen.h" |
@@ -93,7 +94,7 @@ void SnapSizer::ChangeBounds(int x, int delta) { |
} |
gfx::Rect SnapSizer::GetTargetBounds() const { |
- gfx::Rect work_area(gfx::Screen::GetMonitorWorkAreaNearestWindow(window_)); |
+ gfx::Rect work_area(ScreenAsh::GetUnmaximizedWorkAreaBounds(window_)); |
int y = WindowResizer::AlignToGridRoundUp(work_area.y(), grid_size_); |
int max_y = |
WindowResizer::AlignToGridRoundDown(work_area.bottom(), grid_size_); |