diff options
author | Riteo <riteo@posteo.net> | 2024-07-15 23:41:44 +0200 |
---|---|---|
committer | Riteo <riteo@posteo.net> | 2024-07-16 00:11:22 +0200 |
commit | 84f26a629d5cc63d7297df503ba0a8fe9f45dc15 (patch) | |
tree | 0addc428a9aa541d6223196c2264cad0021a66aa /platform/linuxbsd/wayland | |
parent | 97b8ad1af0f2b4a216f6f1263bef4fbc69e56c7b (diff) | |
download | redot-engine-84f26a629d5cc63d7297df503ba0a8fe9f45dc15.tar.gz |
Wayland: check for suspended flag when unsuspending
Before, we would only check for the frame flag, which is unreliable on
newer suspension-aware compositors.
Diffstat (limited to 'platform/linuxbsd/wayland')
-rw-r--r-- | platform/linuxbsd/wayland/display_server_wayland.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linuxbsd/wayland/display_server_wayland.cpp b/platform/linuxbsd/wayland/display_server_wayland.cpp index adc9beed66..93096fcdcc 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; } |