aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 3e38b6d0..3dfacfa1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -177,7 +177,13 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
})
.unwrap_or_default();
- animation::ANIMATION_SLOWDOWN.store(config.debug.animation_slowdown, Ordering::Relaxed);
+ let slowdown = if config.animations.off {
+ 0.
+ } else {
+ config.animations.slowdown
+ };
+ animation::ANIMATION_SLOWDOWN.store(slowdown, Ordering::Relaxed);
+
let spawn_at_startup = mem::take(&mut config.spawn_at_startup);
// Create the compositor.