--- ui/base/x/x11_display_manager.cc.orig 2024-04-15 20:34:29 UTC +++ ui/base/x/x11_display_manager.cc @@ -16,7 +16,7 @@ #include "ui/gfx/x/randr.h" #include "ui/gfx/x/xproto.h" -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) #include "ui/linux/linux_ui.h" #endif @@ -92,7 +92,7 @@ void XDisplayManager::FetchDisplayList() { ? display::Display::GetForcedDeviceScaleFactor() : 1.0f}; const auto* display_config = &empty_display_config; -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) if (const auto* linux_ui = ui::LinuxUi::instance()) { display_config = &linux_ui->display_config(); }