Function: frame-old-selected-window

frame-old-selected-window is a function defined in window.c.

Signature

(frame-old-selected-window &optional FRAME)

Documentation

Return old selected window of FRAME.

FRAME must be a live frame and defaults to the selected one.

The return value is the window selected on FRAME the last time window change functions were run for FRAME.

View in manual

Source Code

// Defined in /usr/src/emacs/src/window.c
{
  if (NILP (frame))
    frame = selected_frame;
  CHECK_LIVE_FRAME (frame);

  return XFRAME (frame)->old_selected_window;
}