$OpenBSD: patch-src_3rdparty_chromium_ui_views_window_custom_frame_view_cc,v 1.2 2021/01/19 06:16:35 rsadowski Exp $

Index: src/3rdparty/chromium/ui/views/window/custom_frame_view.cc
--- src/3rdparty/chromium/ui/views/window/custom_frame_view.cc.orig
+++ src/3rdparty/chromium/ui/views/window/custom_frame_view.cc
@@ -283,7 +283,7 @@ int CustomFrameView::NonClientTopBorderHeight() const 
 int CustomFrameView::CaptionButtonY() const {
   // Maximized buttons start at window top so that even if their images aren't
   // drawn flush with the screen edge, they still obey Fitts' Law.
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
   return FrameBorderThickness();
 #else
   return frame_->IsMaximized() ? FrameBorderThickness() : kFrameShadowThickness;
