stack: Adjust decorations to window geometry
This commit is contained in:
parent
10940a723f
commit
3da08ed22d
4 changed files with 63 additions and 21 deletions
|
|
@ -175,6 +175,14 @@ impl CosmicWindow {
|
|||
self.0.resize(Size::from((geo.size.w, SSD_HEIGHT)));
|
||||
}
|
||||
|
||||
pub fn on_commit(&self, surface: &WlSurface) {
|
||||
self.0.with_program(|p| {
|
||||
if &p.window == surface {
|
||||
p.window.0.on_commit();
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
pub fn surface(&self) -> CosmicSurface {
|
||||
self.0.with_program(|p| p.window.clone())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue