opnsense-ports/devel/electron32/files/patch-ui_views_window_dialog__delegate.cc
Franco Fichtner fd3bf1794a */*: sync with upstream
Taken from: FreeBSD
2024-09-23 09:02:17 +02:00

11 lines
540 B
C++

--- ui/views/window/dialog_delegate.cc.orig 2024-08-14 20:56:06 UTC
+++ ui/views/window/dialog_delegate.cc
@@ -103,7 +103,7 @@ bool DialogDelegate::CanSupportCustomFrame(gfx::Native
// static
bool DialogDelegate::CanSupportCustomFrame(gfx::NativeView parent) {
-#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && \
+#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && \
BUILDFLAG(ENABLE_DESKTOP_AURA)
// The new style doesn't support unparented dialogs on Linux desktop.
return parent != nullptr;