Make sure the window isn't hidden