stack: Adjust decorations to window geometry

This commit is contained in:
Victoria Brekenfeld 2024-03-28 18:21:44 +01:00
parent 10940a723f
commit 3da08ed22d
4 changed files with 63 additions and 21 deletions

View file

@ -413,6 +413,14 @@ impl CosmicMapped {
}
}
pub fn on_commit(&self, surface: &WlSurface) {
match &self.element {
CosmicMappedInternal::Stack(s) => s.on_commit(surface),
CosmicMappedInternal::Window(w) => w.on_commit(surface),
_ => {}
}
}
pub fn min_size(&self) -> Option<Size<i32, Logical>> {
match &self.element {
CosmicMappedInternal::Stack(stack) => {