Avoided an inputAttemptWhenModal callback on OSX when making windows visible.