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

Unified Diff: ui/views/widget/native_widget_aura.cc

Issue 10909043: Cancel drag if display configuration changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | « ui/views/widget/desktop_root_window_host_win.cc ('k') | ui/views/widget/x11_desktop_window_move_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_aura.cc
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
index 2deab23d245e5707ed97e1752060c690645836c9..a90db1fcdf3acfdab4c5a58248466c39c0230675 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -676,9 +676,10 @@ Widget::MoveLoopResult NativeWidgetAura::RunMoveLoop(
if (window_->parent() &&
aura::client::GetWindowMoveClient(window_->parent())) {
SetCapture();
- aura::client::GetWindowMoveClient(window_->parent())->RunMoveLoop(
- window_, drag_offset);
- return Widget::MOVE_LOOP_SUCCESSFUL;
+ if (aura::client::GetWindowMoveClient(window_->parent())->RunMoveLoop(
+ window_, drag_offset) == aura::client::MOVE_SUCCESSFUL) {
+ return Widget::MOVE_LOOP_SUCCESSFUL;
+ }
}
return Widget::MOVE_LOOP_CANCELED;
}
« no previous file with comments | « ui/views/widget/desktop_root_window_host_win.cc ('k') | ui/views/widget/x11_desktop_window_move_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698