summaryrefslogtreecommitdiff
path: root/devel/electron36/files/patch-ui_display_screen.h
diff options
context:
space:
mode:
authorHiroki Tagato <tagattie@FreeBSD.org>2025-05-17 13:00:51 +0900
committerHiroki Tagato <tagattie@FreeBSD.org>2025-05-17 13:02:57 +0900
commit8bd9cc08b803173bbc7e68479f6e7be9735980f4 (patch)
tree71f5fcbea6aec8fdfd22ae5e4be385a99ec5655f /devel/electron36/files/patch-ui_display_screen.h
parentnet-mgmt/prometheus-bird-exporter: Prometheus metric exporter for the BIRD ro... (diff)
devel/electron36: add port: Build cross-platform desktop apps with JavaScript, HTML, and CSS
Build cross platform desktop apps with JavaScript, HTML, and CSS. It's easier than you think. If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application. WWW: https://electronjs.org/
Diffstat (limited to 'devel/electron36/files/patch-ui_display_screen.h')
-rw-r--r--devel/electron36/files/patch-ui_display_screen.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron36/files/patch-ui_display_screen.h b/devel/electron36/files/patch-ui_display_screen.h
new file mode 100644
index 000000000000..c29d8e2036df
--- /dev/null
+++ b/devel/electron36/files/patch-ui_display_screen.h
@@ -0,0 +1,20 @@
+--- ui/display/screen.h.orig 2025-04-22 20:15:27 UTC
++++ ui/display/screen.h
+@@ -140,7 +140,7 @@ class DISPLAY_EXPORT Screen {
+ // (both of which may or may not be `nearest_id`).
+ display::ScreenInfos GetScreenInfosNearestDisplay(int64_t nearest_id) const;
+
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ // Object which suspends the platform-specific screensaver for the duration of
+ // its existence.
+ class ScreenSaverSuspender {
+@@ -246,7 +246,7 @@ class DISPLAY_EXPORT Screen {
+ int64_t display_id_for_new_windows_;
+ int64_t scoped_display_id_for_new_windows_ = display::kInvalidDisplayId;
+
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ uint32_t screen_saver_suspension_count_ = 0;
+ #endif // BUILDFLAG(IS_LINUX)
+ };