Преглед изворни кода

Merge pull request #110875 from vmedea/2025-wayland-inhibit-idle

wayland: Inhibit idle in DisplayServerWayland::screen_set_keep_on
Thaddeus Crews пре 2 недеља
родитељ
комит
373ff727f0
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      platform/linuxbsd/wayland/display_server_wayland.cpp

+ 2 - 0
platform/linuxbsd/wayland/display_server_wayland.cpp

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