Merge pull request #89306 from alesliehughes/wayland_warning

Wayland: Stop unreachable warning
This commit is contained in:
Rémi Verschelde 2024-03-09 22:19:45 +01:00
commit 43fd1f6bbd
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -585,9 +585,9 @@ void DisplayServerWayland::screen_set_keep_on(bool p_enable) {
bool DisplayServerWayland::screen_is_kept_on() const {
#ifdef DBUS_ENABLED
return wayland_thread.window_get_idle_inhibition(MAIN_WINDOW_ID) || screensaver_inhibited;
#endif
#else
return wayland_thread.window_get_idle_inhibition(MAIN_WINDOW_ID);
#endif
}
Vector<DisplayServer::WindowID> DisplayServerWayland::get_window_list() const {