Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Unified Diff: ash/wm/default_window_resizer.cc

Issue 10834097: Allow the user to drag a window from one display to another (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/wm/window_resizer.h » ('j') | ash/wm/workspace/workspace_window_resizer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/default_window_resizer.cc
diff --git a/ash/wm/default_window_resizer.cc b/ash/wm/default_window_resizer.cc
index 16f4db395f62477e8de40783bc9c55ebfd3ead69..a02e367559f1526c77159139760ef73ee44e05b7 100644
--- a/ash/wm/default_window_resizer.cc
+++ b/ash/wm/default_window_resizer.cc
@@ -47,7 +47,7 @@ void DefaultWindowResizer::Drag(const gfx::Point& location_in_screen,
int grid_size = event_flags & ui::EF_CONTROL_DOWN ?
0 : ash::Shell::GetInstance()->GetGridSize();
gfx::Rect bounds(
- CalculateBoundsForDrag(details_, location_in_root, grid_size));
+ CalculateBoundsForDrag(details_, location_in_screen, grid_size));
if (bounds != details_.window->bounds()) {
did_move_or_resize_ = true;
details_.window->SetBounds(bounds);
« no previous file with comments | « no previous file | ash/wm/window_resizer.h » ('j') | ash/wm/workspace/workspace_window_resizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698