--- electron/shell/browser/native_window.cc.orig 2025-07-22 07:51:00 UTC +++ electron/shell/browser/native_window.cc @@ -182,7 +182,7 @@ void NativeWindow::InitFromOptions(const gin_helper::D } else { SetSizeConstraints(size_constraints); } -#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