frame-root-window-p

frame-root-window-p is a compiled Lisp function in `window.el'.

(frame-root-window-p WINDOW)

Return non-nil if WINDOW is the root window of its frame.