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

@ -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())
}