mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
config: Add merging for Animations
This commit is contained in:
+2
-2
@@ -1381,7 +1381,7 @@ impl State {
|
||||
self.niri.layout.ensure_named_workspace(ws_config);
|
||||
}
|
||||
|
||||
let rate = 1.0 / config.animations.slowdown.0.max(0.001);
|
||||
let rate = 1.0 / config.animations.slowdown.max(0.001);
|
||||
self.niri.clock.set_rate(rate);
|
||||
self.niri
|
||||
.clock
|
||||
@@ -2320,7 +2320,7 @@ impl Niri {
|
||||
|
||||
let mut animation_clock = Clock::default();
|
||||
|
||||
let rate = 1.0 / config_.animations.slowdown.0.max(0.001);
|
||||
let rate = 1.0 / config_.animations.slowdown.max(0.001);
|
||||
animation_clock.set_rate(rate);
|
||||
animation_clock.set_complete_instantly(config_.animations.off);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user