Skip to main content

handle_focus_lost

Function handle_focus_lost 

Source
pub fn handle_focus_lost(
    window: &Window,
    state: &BlurDismissState,
    hide_on_blur_pref: bool,
)
Expand description

WindowEvent::Focused(false) handler: hide window when should_hide_on_blur allows it. hide_on_blur_pref is the caller’s product-owned settings value (not this crate’s concern).