blob: d4d6c5bed77ae9caf5f4c562a821ffc332956cbe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- chrome/browser/ui/views/tabs/tab_drag_controller.cc.orig 2016-05-11 19:02:16 UTC
+++ chrome/browser/ui/views/tabs/tab_drag_controller.cc
@@ -268,7 +268,7 @@ void TabDragController::Init(
// synchronous on desktop Linux, so use that.
// - Ash
// Releasing capture on Ash cancels gestures so avoid it.
-#if defined(OS_LINUX) || defined(USE_ASH)
+#if defined(OS_LINUX) || defined(OS_BSD) || defined(USE_ASH)
can_release_capture_ = false;
#endif
start_point_in_screen_ = gfx::Point(source_tab_offset, mouse_offset.y());
@@ -618,7 +618,7 @@ TabDragController::DragBrowserToNewTabSt
// that to effect the position of any windows.
SetWindowPositionManaged(browser_widget->GetNativeWindow(), false);
-#if !defined(OS_LINUX) || defined(OS_CHROMEOS)
+#if (!defined(OS_LINUX) && !defined(OS_BSD)) || defined(OS_CHROMEOS)
// EndMoveLoop is going to snap the window back to its original location.
// Hide it so users don't see this. Hiding a window in Linux aura causes
// it to lose capture so skip it.
@@ -1791,7 +1791,7 @@ gfx::NativeWindow TabDragController::Get
if (dragged_window)
exclude.insert(dragged_window);
}
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD)
// Exclude windows which are pending deletion via Browser::TabStripEmpty().
// These windows can be returned in the Linux Aura port because the browser
// window which was used for dragging is not hidden once all of its tabs are
|