screenshot: Don't use meta_window_get_rect

It's going to be removed soon.