mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
Merge pull request #89306 from alesliehughes/wayland_warning
Wayland: Stop unreachable warning
This commit is contained in:
commit
43fd1f6bbd
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user