Settle window animations when their workspace hides

This commit is contained in:
Samuel Onoja committed 2026-09-29 15:13:31 +01:00
1 parent a840db5946
commit a597d09a7a
2 files changed
+21 -1

No files matched your search

+5 -1
View File
@@ -1460,7 +1460,11 @@ impl Ferese {
if visible.contains(id) {
continue;
}
layout_changed |= space.element_location(window).is_some();
let was_mapped = space.element_location(window).is_some();
layout_changed |= was_mapped;
if was_mapped && let Some(geometry) = self.window_geometry.get_mut(id) {
geometry.settle_presentation();
}
space.unmap_elem(window);
}
self.space = space;