pub fn set_video_minimize_on_focus_loss_with_priority(
    value: bool,
    priority: &Hint
) -> bool
Expand description

A hint that specifies whether a fullscreen Window will be minimized if key focus is lost.

Official SDL documentation

Example

sdl2::hint::set_video_minimize_on_focus_loss_with_priority(false, &sdl2::hint::Hint::Override);
  • value: true to enable minimizing of the Window if it loses key focus when in fullscreen mode, false to disable this feature.
  • priority: The priority controls the behavior when setting a hint that already has a value. Hints will replace existing hints of their priority and lower. Environment variables are considered to have override priority.