Skip to main content

should_hide_on_blur

Function should_hide_on_blur 

Source
pub fn should_hide_on_blur(
    blur_dismiss_enabled: bool,
    hide_on_blur_pref: bool,
) -> bool
Expand description

Decide whether a focus-lost event should hide the window: both the runtime gate (blur_dismiss_enabled, from BlurDismissState::enabled) and the user’s persisted preference (hide_on_blur_pref, product-owned settings) must allow it.