diff options
author | Josh Matthews <josh@joshmatthews.net> | 2024-12-20 07:15:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-20 12:15:13 +0000 |
commit | 915901bdec4b15e2f9023db3e62c9020bc7479a7 (patch) | |
tree | dc3e459f0834c45946bc6eee424eb092d04bc587 /components | |
parent | a5c461146f841fcfada51c0a7ed06426d6f27a1a (diff) | |
download | servo-915901bdec4b15e2f9023db3e62c9020bc7479a7.tar.gz servo-915901bdec4b15e2f9023db3e62c9020bc7479a7.zip |
compositing: Invert check for webxr when determining animation status. (#34715)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'components')
-rw-r--r-- | components/compositing/compositor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/compositing/compositor.rs b/components/compositing/compositor.rs index e2cc9a9df40..6be338b266b 100644 --- a/components/compositing/compositor.rs +++ b/components/compositing/compositor.rs @@ -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 |