minimize on focus loss on windows or macos