$OpenBSD: patch-ui_views_style_platform_style_cc,v 1.12 2021/04/01 10:24:46 robert Exp $

Index: ui/views/style/platform_style.cc
--- ui/views/style/platform_style.cc.orig
+++ ui/views/style/platform_style.cc
@@ -54,7 +54,7 @@ const bool PlatformStyle::kInactiveWidgetControlsAppea
 // Linux clips bubble windows that extend outside their parent window
 // bounds.
 const bool PlatformStyle::kAdjustBubbleIfOffscreen =
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD)
     false;
 #else
     true;
@@ -89,7 +89,7 @@ View::FocusBehavior PlatformStyle::DefaultFocusBehavio
 #endif  // OS_APPLE
 
 #if !BUILDFLAG(ENABLE_DESKTOP_AURA) || \
-    (!defined(OS_LINUX) && !defined(OS_CHROMEOS))
+    (!defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_BSD))
 // static
 std::unique_ptr<Border> PlatformStyle::CreateThemedLabelButtonBorder(
     LabelButton* button) {
