Fix the focus problem of the atlas window.

Thanks @Beliaar.