1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

wayland: Inhibit idle in DisplayServerWayland::screen_set_keep_on

Without this, the screen does go into idle after a few minutes on a RPi5 with default install (wayland w/ labwc), even
though `screen_keep_on` is set. DBUS is enabled but apparently, the screensaver call is not enough.

(cherry picked from commit c64ff4b069)
This commit is contained in:
Mara Huldra
2025-09-24 22:09:57 +02:00
committed by Rémi Verschelde
parent 24bc49d557
commit b0a2063d8f

View File

@@ -679,6 +679,8 @@ void DisplayServerWayland::screen_set_keep_on(bool p_enable) {
return; return;
} }
wayland_thread.window_set_idle_inhibition(MAIN_WINDOW_ID, p_enable);
#ifdef DBUS_ENABLED #ifdef DBUS_ENABLED
if (screensaver) { if (screensaver) {
if (p_enable) { if (p_enable) {