fix(app): count a popup closed once now that Done also reaches its parent

This commit is contained in:
Hojjat 2026-09-08 14:31:41 -06:00 • committed by Michael Murphy
parent a8fe59f388
commit 6081a48cd3

View file

@ -563,9 +563,13 @@ where
#[cfg(wayland_platform)] #[cfg(wayland_platform)]
iced::Event::PlatformSpecific(iced::event::PlatformSpecific::Wayland(event)) => { iced::Event::PlatformSpecific(iced::event::PlatformSpecific::Wayland(event)) => {
match event { match event {
wayland::Event::Popup(wayland::PopupEvent::Done, _, id) wayland::Event::Popup(wayland::PopupEvent::Done, _, popup) => {
| wayland::Event::Layer(wayland::LayerEvent::Done, _, id) => { if popup == id {
return Some(Action::SurfaceClosed(id)); return Some(Action::SurfaceClosed(popup));
}
}
wayland::Event::Layer(wayland::LayerEvent::Done, _, layer) => {
return Some(Action::SurfaceClosed(layer));
} }
#[cfg(feature = "applet")] #[cfg(feature = "applet")]
wayland::Event::Window( wayland::Event::Window(