You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Wayland: check for suspended flag when unsuspending
Before, we would only check for the frame flag, which is unreliable on newer suspension-aware compositors.
This commit is contained in:
@@ -1238,7 +1238,7 @@ void DisplayServerWayland::process_events() {
|
|||||||
} else {
|
} else {
|
||||||
try_suspend();
|
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.
|
// At last, a sign of life! We're no longer suspended.
|
||||||
suspended = false;
|
suspended = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user