Skip to content

Commit 77084ba

Browse files
committed
floating: Return pending geometry on unmap
1 parent 24a48fd commit 77084ba

File tree

1 file changed

+3
-0
lines changed
  • src/shell/layout/floating

1 file changed

+3
-0
lines changed

src/shell/layout/floating/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,9 @@ impl FloatingLayout {
646646
mapped_geometry.size = last_size;
647647
}
648648
} else if !window.is_maximized(true) {
649+
if let Some(pending_size) = window.pending_size() {
650+
mapped_geometry.size = pending_size.as_local();
651+
}
649652
*window.last_geometry.lock().unwrap() = Some(mapped_geometry);
650653
}
651654

0 commit comments

Comments
 (0)