From 84f26a629d5cc63d7297df503ba0a8fe9f45dc15 Mon Sep 17 00:00:00 2001 From: Riteo Date: Mon, 15 Jul 2024 23:41:44 +0200 Subject: [PATCH] Wayland: check for suspended flag when unsuspending Before, we would only check for the frame flag, which is unreliable on newer suspension-aware compositors. --- platform/linuxbsd/wayland/display_server_wayland.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linuxbsd/wayland/display_server_wayland.cpp b/platform/linuxbsd/wayland/display_server_wayland.cpp index adc9beed66ea..93096fcdcc66 100644 --- a/platform/linuxbsd/wayland/display_server_wayland.cpp +++ b/platform/linuxbsd/wayland/display_server_wayland.cpp @@ -1238,7 +1238,7 @@ void DisplayServerWayland::process_events() { } else { try_suspend(); } - } else if (wayland_thread.get_reset_frame()) { + } else if (!wayland_thread.is_suspended() || wayland_thread.get_reset_frame()) { // At last, a sign of life! We're no longer suspended. suspended = false; }