floating: Return pending geometry on unmap
This commit is contained in:
parent
24a48fdac6
commit
77084ba1cc
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue