aboutsummaryrefslogtreecommitdiff
path: root/devel/electron29/files/patch-ui_ozone_platform_x11_x11__screen__ozone.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron29/files/patch-ui_ozone_platform_x11_x11__screen__ozone.cc')
-rw-r--r--devel/electron29/files/patch-ui_ozone_platform_x11_x11__screen__ozone.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron29/files/patch-ui_ozone_platform_x11_x11__screen__ozone.cc b/devel/electron29/files/patch-ui_ozone_platform_x11_x11__screen__ozone.cc
new file mode 100644
index 000000000000..6187193b98bf
--- /dev/null
+++ b/devel/electron29/files/patch-ui_ozone_platform_x11_x11__screen__ozone.cc
@@ -0,0 +1,20 @@
+--- ui/ozone/platform/x11/x11_screen_ozone.cc.orig 2023-11-29 21:40:44 UTC
++++ ui/ozone/platform/x11/x11_screen_ozone.cc
+@@ -22,7 +22,7 @@
+ #include "ui/ozone/platform/x11/x11_window.h"
+ #include "ui/ozone/platform/x11/x11_window_manager.h"
+
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ #include "ui/linux/linux_ui.h"
+ #endif
+
+@@ -77,7 +77,7 @@ X11ScreenOzone::X11ScreenOzone()
+ window_manager_(X11WindowManager::GetInstance()),
+ x11_display_manager_(std::make_unique<XDisplayManager>(this)) {
+ DCHECK(window_manager_);
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ if (auto* linux_ui = ui::LinuxUi::instance()) {
+ display_scale_factor_observer_.Observe(linux_ui);
+ }