소스 검색

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.
Mara Huldra 3 주 전
부모
커밋
c64ff4b069
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      platform/linuxbsd/wayland/display_server_wayland.cpp

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

@@ -679,6 +679,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) {