Implement window closing animations

This commit is contained in:
Ivan Molodetskikh
2024-04-09 22:37:10 +04:00
parent 301a2c0661
commit dd011f1012
12 changed files with 683 additions and 24 deletions
+6
View File
@@ -382,6 +382,12 @@ impl XdgShellHandler for State {
let window = mapped.window.clone();
let output = output.clone();
self.backend.with_primary_renderer(|renderer| {
self.niri
.layout
.start_close_animation_for_window(renderer, &window);
});
let active_window = self.niri.layout.active_window().map(|(m, _)| &m.window);
let was_active = active_window == Some(&window);