Files
ports/devel/electron43/files/patch-electron_shell_browser_native__window.cc
2026-10-04 04:07:15 +00:00

21 lines
734 B
C++

--- electron/shell/browser/native_window.cc.orig 2026-08-31 00:54:38 UTC
+++ electron/shell/browser/native_window.cc
@@ -33,7 +33,7 @@
#if BUILDFLAG(IS_WIN)
#include "shell/browser/ui/views/frameless_view.h"
-#elif BUILDFLAG(IS_LINUX)
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
#include "shell/browser/ui/views/electron_frame_view_linux.h"
#endif
@@ -185,7 +185,7 @@ void NativeWindow::InitFromOptions(const gin_helper::D
} else if (bool center; options.Get(options::kCenter, &center) && center) {
Center();
}
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
if (bool val; options.Get(options::kClosable, &val))
SetClosable(val);
#endif