Skip to main content

dismiss_open_popups

Function dismiss_open_popups 

Source
pub fn dismiss_open_popups(info: &InfoNode, path: &HitPath<'_>) -> bool
Expand description

Dismisses every open popup whose owner is not under the pointer press.

Implements top-layer dismissal: a press whose hit path already contains a popup’s owner is that owner’s responsibility (the event is routed to the popup, or to the owning box which closes it), while every other open popup is closed. Returns whether any popup was dismissed.