Function: frame-root-frame

frame-root-frame is a function defined in frame.c.

Signature

(frame-root-frame &optional FRAME)

Documentation

Return root frame of specified FRAME.

FRAME must be a live frame and defaults to the selected one. The root frame of FRAME is the frame obtained by following the chain of parent frames starting with FRAME until a frame is reached that has no parent. If FRAME has no parent, its root frame is FRAME.

View in manual

Source Code

// Defined in /usr/src/emacs/src/frame.c
{
  struct frame *f = decode_live_frame (frame);
  struct frame *r = root_frame (f);
  Lisp_Object root;

  XSETFRAME (root, r);

  return root;
}