fix(app): count a popup closed once now that Done also reaches its parent
This commit is contained in:
parent
a8fe59f388
commit
6081a48cd3
1 changed files with 7 additions and 3 deletions
|
|
@ -563,9 +563,13 @@ where
|
|||
#[cfg(wayland_platform)]
|
||||
iced::Event::PlatformSpecific(iced::event::PlatformSpecific::Wayland(event)) => {
|
||||
match event {
|
||||
wayland::Event::Popup(wayland::PopupEvent::Done, _, id)
|
||||
| wayland::Event::Layer(wayland::LayerEvent::Done, _, id) => {
|
||||
return Some(Action::SurfaceClosed(id));
|
||||
wayland::Event::Popup(wayland::PopupEvent::Done, _, popup) => {
|
||||
if popup == id {
|
||||
return Some(Action::SurfaceClosed(popup));
|
||||
}
|
||||
}
|
||||
wayland::Event::Layer(wayland::LayerEvent::Done, _, layer) => {
|
||||
return Some(Action::SurfaceClosed(layer));
|
||||
}
|
||||
#[cfg(feature = "applet")]
|
||||
wayland::Event::Window(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue