Index: ash/wm/workspace/workspace_window_resizer.cc |
diff --git a/ash/wm/workspace/workspace_window_resizer.cc b/ash/wm/workspace/workspace_window_resizer.cc |
index 3cf2a8a2507472e6f933825b4003dc2323e6dd0d..59e25eea37da7b859bcde703f845870922da428b 100644 |
--- a/ash/wm/workspace/workspace_window_resizer.cc |
+++ b/ash/wm/workspace/workspace_window_resizer.cc |
@@ -789,10 +789,9 @@ void WorkspaceWindowResizer::AdjustBoundsForMainWindow( |
if (sticky_size > 0) { |
// Possibly stick to edge except when a mouse pointer is outside the |
// work area. |
- if (!(display.work_area().Contains(last_mouse_location_in_screen) && |
- StickToWorkAreaOnMove(work_area, sticky_size, bounds))) { |
- MagneticallySnapToOtherWindows(bounds); |
- } |
+ if (display.work_area().Contains(last_mouse_location_in_screen)) |
+ StickToWorkAreaOnMove(work_area, sticky_size, bounds); |
+ MagneticallySnapToOtherWindows(bounds); |
} |
} else if (sticky_size > 0) { |
MagneticallySnapResizeToOtherWindows(bounds); |