feat(applets): add destroy tooltip popup action
This commit adds a new surface action to explicitly destroy the tooltip popup on `TOOLTIP_WINDOW_ID`, allowing proper cleanup when minimizing applets.
This commit is contained in:
parent
24464908f6
commit
97a805e5a1
3 changed files with 15 additions and 1 deletions
|
|
@ -230,6 +230,17 @@ where
|
|||
iced_winit::commands::popup::destroy_popup(id)
|
||||
}
|
||||
#[cfg(all(feature = "wayland", target_os = "linux"))]
|
||||
crate::surface::Action::DestroyTooltipPopup => {
|
||||
#[cfg(feature = "applet")]
|
||||
{
|
||||
iced_winit::commands::popup::destroy_popup(*crate::applet::TOOLTIP_WINDOW_ID)
|
||||
}
|
||||
#[cfg(not(feature = "applet"))]
|
||||
{
|
||||
Task::none()
|
||||
}
|
||||
}
|
||||
#[cfg(all(feature = "wayland", target_os = "linux"))]
|
||||
crate::surface::Action::DestroySubsurface(id) => {
|
||||
iced_winit::commands::subsurface::destroy_subsurface(id)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue