summaryrefslogtreecommitdiff
path: root/platform/linuxbsd
diff options
context:
space:
mode:
authorRedMser <redmser.jj2@gmail.com>2022-08-06 22:10:24 +0200
committerRedMser <redmser.jj2@gmail.com>2022-08-06 22:10:24 +0200
commitc939f336d6e26bb0d84f23e5a2587bc296b35dbf (patch)
treeef44e76be6b5098ce3a2e2c780dfee0dab8fc086 /platform/linuxbsd
parent21f6916ffc52d83ac57b4f412f3eb8d6b40afebe (diff)
Only define `keep_screen_on` project setting once
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r--platform/linuxbsd/display_server_x11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linuxbsd/display_server_x11.cpp b/platform/linuxbsd/display_server_x11.cpp
index 3409e43ba5..8efbd2e3c5 100644
--- a/platform/linuxbsd/display_server_x11.cpp
+++ b/platform/linuxbsd/display_server_x11.cpp
@@ -4991,7 +4991,7 @@ DisplayServerX11::DisplayServerX11(const String &p_rendering_driver, WindowMode
#ifdef DBUS_ENABLED
screensaver = memnew(FreeDesktopScreenSaver);
- screen_set_keep_on(GLOBAL_DEF("display/window/energy_saving/keep_screen_on", true));
+ screen_set_keep_on(GLOBAL_GET("display/window/energy_saving/keep_screen_on"));
#endif
r_error = OK;