fix: popup cleanup

This commit is contained in:
Ashley Wulber 2026-07-06 18:44:30 -04:00
parent c781ff6199
commit b5b2b2fcc3
2 changed files with 7 additions and 1 deletions

View file

@ -84,6 +84,11 @@ impl PopupHandler for SctkState {
for popup in to_destroy.into_iter().rev() {
if let Some(id) = self.id_map.remove(&popup.popup.wl_surface().id())
{
if let Some(blurred) = self.blur_surfaces.remove(&id) {
blurred.destroy();
}
_ = self.corner_radii.remove(&id);
_ = self.destroyed.insert(id);
}