select_window to attached_window