Skip to content

Commit

Permalink
Merge pull request #89306 from alesliehughes/wayland_warning
Browse files Browse the repository at this point in the history
Wayland: Stop unreachable warning
  • Loading branch information
akien-mga committed Mar 9, 2024
2 parents ecc4649 + d3ebae5 commit 43fd1f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/linuxbsd/wayland/display_server_wayland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 43fd1f6

Please sign in to comment.