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

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: Additional SetCapture after Attach and Show in TabDragController 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: 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..47a3dda1e949af433e40507a426aa945b9c5aaec 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller.cc
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
@@ -1177,6 +1177,8 @@ void TabDragController::DetachIntoNewBrowserAndRunMoveLoop(
WindowPositionManagedUpdater updater;
dragged_widget->AddObserver(&updater);
browser->window()->Show();
+ // Set capture after the newly created browser widget is visible.
+ attached_tabstrip_->GetWidget()->SetCapture(attached_tabstrip_);
dragged_widget->RemoveObserver(&updater);
dragged_widget->SetVisibilityChangedAnimationsEnabled(true);
// Activate may trigger a focus loss, destroying us.

Powered by Google App Engine
This is Rietveld 408576698