Function sdl2::hint::set_video_minimize_on_focus_lost [] [src]

pub fn set_video_minimize_on_focus_lost(value: bool) -> bool

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

Official SDL documentation

Default

This is enabled by default.

Example

sdl2::hint::set_video_minimize_on_focus_lost(false);
  • value: true to enable minimizing of the Window if it loses key focus when in fullscreen mode, false to disable this feature.