pkgsrc-wip/chromium/patches/patch-chrome_browser_ui_vie...

32 lines
1.4 KiB
C++

$NetBSD$
--- chrome/browser/ui/views/tabs/tab_drag_controller.cc.orig 2020-07-08 21:41:47.000000000 +0000
+++ chrome/browser/ui/views/tabs/tab_drag_controller.cc
@@ -445,7 +445,7 @@ void TabDragController::Init(TabDragCont
// synchronous on desktop Linux, so use that.
// - Chrome OS
// Releasing capture on Ash cancels gestures so avoid it.
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
can_release_capture_ = false;
#endif
start_point_in_screen_ = gfx::Point(source_view_offset, mouse_offset.y());
@@ -890,7 +890,7 @@ TabDragController::DragBrowserToNewTabSt
else
SetCapture(target_context);
-#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.
@@ -2080,7 +2080,7 @@ TabDragController::Liveness TabDragContr
if (dragged_window)
exclude.insert(dragged_window);
}
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
// 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