Check on_screen only if using a window mode