Settle window animations when their workspace hides
This commit is contained in:
1 parent
a840db5946
commit
a597d09a7a
2 files changed
+21
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user