There needs to be a Lisp-level way to get the frame associated with a window configuration.