stack: Handle scrolling properly

This commit is contained in:
Victoria Brekenfeld 2023-06-13 18:32:04 +02:00
parent f5f58b0663
commit 73d7f3779f
2 changed files with 181 additions and 40 deletions

View file

@ -50,11 +50,9 @@ pub struct CosmicWindow(IcedElement<CosmicWindowInternal>);
impl fmt::Debug for CosmicWindow {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
self.0.with_program(|window| {
f.debug_struct("CosmicWindow")
.field("internal", window)
.finish_non_exhaustive()
})
f.debug_struct("CosmicWindow")
.field("internal", &self.0)
.finish_non_exhaustive()
}
}