fix(wayland/toplevel): don't unwrap

This commit is contained in:
Nova
2025-09-01 20:36:19 -07:00
parent d9a6ca9bef
commit a5b4939b57

View File

@@ -148,11 +148,10 @@ impl Toplevel {
.collect(),
)
.await?;
self.xdg_surface
.upgrade()
.unwrap()
.reconfigure(client)
.await
if let Some(xdg_surface) = self.xdg_surface.upgrade() {
xdg_surface.reconfigure(client).await?;
}
Ok(())
}
}
impl XdgToplevel for Toplevel {