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

Unified Diff: ui/views/widget/desktop_aura/x11_desktop_window_move_client.cc

Issue 262893002: Removes grab input window and extra grab and ungrab in X11WholeScreenMoveLoop Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More refactoring of CreateDragImageWindow into DesktopDragDropClientAuraX11 Created 6 years, 7 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
Index: ui/views/widget/desktop_aura/x11_desktop_window_move_client.cc
diff --git a/ui/views/widget/desktop_aura/x11_desktop_window_move_client.cc b/ui/views/widget/desktop_aura/x11_desktop_window_move_client.cc
index 195d102a5876405308953a22545444be176d71de..13975ee4228aa10dbddec0a3c4271fbb0be05c40 100644
--- a/ui/views/widget/desktop_aura/x11_desktop_window_move_client.cc
+++ b/ui/views/widget/desktop_aura/x11_desktop_window_move_client.cc
@@ -48,8 +48,10 @@ aura::client::WindowMoveResult X11DesktopWindowMoveClient::RunMoveLoop(
aura::client::WindowMoveSource move_source) {
window_offset_ = drag_offset;
host_ = source->GetHost();
+ host_->SetCapture();
pkotwicz 2014/05/07 02:22:24 Did you end up figuring out why this is necessary?
varkha 2014/05/07 02:28:54 No, but since this is largely a refactoring CL thi
varkha 2014/05/07 19:54:28 Yes, since the TabDragController releases capture
- bool success = move_loop_.RunMoveLoop(source, host_->last_cursor());
+ bool success = move_loop_.RunMoveLoop(host_->last_cursor());
+ source->GetHost()->ReleaseCapture();
sadrul 2014/05/07 14:18:16 host_->ReleaseCapture()? (or is it possible for |t
varkha 2014/05/07 19:54:28 host_ gets reset in OnMoveLoopEnded() in this clas
return success ? aura::client::MOVE_SUCCESSFUL : aura::client::MOVE_CANCELED;
}

Powered by Google App Engine
This is Rietveld 408576698