stack: Adjust decorations to window geometry
This commit is contained in:
parent
10940a723f
commit
3da08ed22d
4 changed files with 63 additions and 21 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue