Index: doc/ratpoison.texi =================================================================== RCS file: /cvsroot/ratpoison/ratpoison/doc/ratpoison.texi,v retrieving revision 1.102 diff -r1.102 ratpoison.texi 1096a1097,1101 > @item C-t x > @item C-t C-x > In split view, swap the window in the current frame with the window from the > last accessed frame. > Index: src/actions.c =================================================================== RCS file: /cvsroot/ratpoison/ratpoison/src/actions.c,v retrieving revision 1.256 diff -r1.256 actions.c 244a245 > add_command ("swap", cmd_swap, 0, 0, 0); 731a733,734 > add_keybinding (XK_x, 0, "swap", map); > add_keybinding (XK_x, RP_CONTROL_MASK, "swap", map); 1159a1163,1188 > > return cmdret_new (RET_SUCCESS, NULL); > } > > cmdret * > cmd_swap (int interactive, struct cmdarg **args) > { > rp_frame *curr_frame, *last_frame; > rp_window *window; > > last_frame = find_last_frame(); > curr_frame = current_frame(); > window = current_window(); > > if (NULL == last_frame > || NULL == curr_frame > || NULL == window) > return NULL; > > blank_frame (curr_frame); /* select - */ > set_active_frame (last_frame); /* focuslast */ > set_active_window (window); /* other */ > set_active_frame (curr_frame); /* focuslast */ > > window = group_last_window (rp_current_group, current_screen()); > set_active_window (window); /* other */ Index: src/actions.h =================================================================== RCS file: /cvsroot/ratpoison/ratpoison/src/actions.h,v retrieving revision 1.83 diff -r1.83 actions.h 166a167 > RP_CMD (swap);