summaryrefslogtreecommitdiff
path: root/devel/electron6/files/patch-ui_views_window_dialog__delegate.cc
blob: b7da6f031a247deffb2cb9352a4dc227bfd40189 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- ui/views/window/dialog_delegate.cc.orig	2019-09-10 11:14:40 UTC
+++ ui/views/window/dialog_delegate.cc
@@ -61,7 +61,7 @@ Widget::InitParams DialogDelegate::GetDialogWidgetInit
   params.bounds = bounds;
   DialogDelegate* dialog = delegate->AsDialogDelegate();
 
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
   // The new style doesn't support unparented dialogs on Linux desktop.
   if (dialog)
     dialog->supports_custom_frame_ &= parent != nullptr;