floating: Return pending geometry on unmap

This commit is contained in:
Victoria Brekenfeld 2025-07-03 16:11:09 +02:00 committed by Victoria Brekenfeld
parent 24a48fdac6
commit 77084ba1cc

View file

@ -646,6 +646,9 @@ impl FloatingLayout {
mapped_geometry.size = last_size;
}
} else if !window.is_maximized(true) {
if let Some(pending_size) = window.pending_size() {
mapped_geometry.size = pending_size.as_local();
}
*window.last_geometry.lock().unwrap() = Some(mapped_geometry);
}