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

Unified Diff: chrome/browser/ui/views/tabs/tab_drag_controller.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: Removes grab input window and extra grab and ungrab in X11WholeScreenMoveLoop (order in TabDragCont… 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
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab_drag_controller.cc
diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller.cc b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
index 54f836d1eb6b0a2a5b1774deb2f9bb9baf0b500b..ee2c1bdbdaa429b0cb4452f1e8d0c40ff8f4111a 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller.cc
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
@@ -1179,6 +1179,8 @@ void TabDragController::DetachIntoNewBrowserAndRunMoveLoop(
browser->window()->Show();
dragged_widget->RemoveObserver(&updater);
dragged_widget->SetVisibilityChangedAnimationsEnabled(true);
+ // Set capture after the newly created browser widget is visible.
+ attached_tabstrip_->GetWidget()->SetCapture(attached_tabstrip_);
sky 2014/05/27 13:27:04 Couple of questions. Why is this needed here since
varkha 2014/05/28 19:11:46 I had this comment here before, but it is higher u
// Activate may trigger a focus loss, destroying us.
{
base::WeakPtr<TabDragController> ref(weak_factory_.GetWeakPtr());
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698