correct behavior of cursor_exists with on-screen windows