[[ Bug 11819 ]] Make sure windows are invalidated before open on Mac.