compositing: Invert check for webxr when determining animation status. (#34715)

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2024-12-20 07:15:13 -05:00 committed by GitHub
parent a5c461146f
commit 915901bdec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1807,7 +1807,7 @@ impl<Window: WindowMethods + ?Sized> IOCompositor<Window> {
let webxr_running = self.webxr_main_thread.running();
#[cfg(not(feature = "webxr"))]
let webxr_running = false;
let animation_state = if pipeline_ids.is_empty() && webxr_running {
let animation_state = if pipeline_ids.is_empty() && !webxr_running {
windowing::AnimationState::Idle
} else {
windowing::AnimationState::Animating