diff options
Diffstat (limited to 'www/chromium-uc/patches/patch-ui_views_widget_widget_cc')
| -rw-r--r-- | www/chromium-uc/patches/patch-ui_views_widget_widget_cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/www/chromium-uc/patches/patch-ui_views_widget_widget_cc b/www/chromium-uc/patches/patch-ui_views_widget_widget_cc new file mode 100644 index 0000000..8cbc03e --- /dev/null +++ b/www/chromium-uc/patches/patch-ui_views_widget_widget_cc | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | $OpenBSD: patch-ui_views_widget_widget_cc,v 1.5 2021/11/16 11:28:47 robert Exp $ | ||
| 2 | |||
| 3 | Index: ui/views/widget/widget.cc | ||
| 4 | --- ui/views/widget/widget.cc.orig | ||
| 5 | +++ ui/views/widget/widget.cc | ||
| 6 | @@ -51,7 +51,7 @@ | ||
| 7 | #include "ui/views/window/custom_frame_view.h" | ||
| 8 | #include "ui/views/window/dialog_delegate.h" | ||
| 9 | |||
| 10 | -#if defined(OS_LINUX) | ||
| 11 | +#if defined(OS_LINUX) || defined(OS_BSD) | ||
| 12 | #include "ui/views/linux_ui/linux_ui.h" | ||
| 13 | #endif | ||
| 14 | |||
| 15 | @@ -1797,7 +1797,7 @@ const ui::NativeTheme* Widget::GetNativeTheme() const | ||
| 16 | parent_) | ||
| 17 | return parent_->GetNativeTheme(); | ||
| 18 | |||
| 19 | -#if defined(OS_LINUX) | ||
| 20 | +#if defined(OS_LINUX) || defined(OS_BSD) | ||
| 21 | if (const views::LinuxUI* linux_ui = views::LinuxUI::instance()) { | ||
| 22 | if (auto* native_theme = linux_ui->GetNativeTheme(GetNativeWindow())) | ||
| 23 | return native_theme; | ||
