fix: consider SSD/tab height when calculating last server size

This commit is contained in:
Hojjat 2026-04-14 18:06:34 -06:00 • committed by Jacob Kauffmann
parent 769ca13647
commit fdf015cbcf
4 changed files with 26 additions and 1 deletions

View file

@ -408,6 +408,14 @@ impl CosmicMapped {
}
}
pub fn last_server_size(&self) -> Option<Size<i32, Logical>> {
match &self.element {
CosmicMappedInternal::Stack(s) => s.last_server_size(),
CosmicMappedInternal::Window(w) => w.last_server_size(),
_ => unreachable!(),
}
}
pub fn set_geometry(&self, geo: Rectangle<i32, Global>) {
match &self.element {
CosmicMappedInternal::Stack(s) => s.set_geometry(geo),