Fix #63—Correctly dismiss legacy alert
Fix #64—Match autorotation to previous window