Function: window-parent
window-parent is a function defined in window.c.
Signature
(window-parent &optional WINDOW)
Documentation
Return the parent window of window WINDOW.
WINDOW must be a valid window and defaults to the selected one. Return nil for a window with no parent (e.g. a root window).
Source Code
// Defined in /usr/src/emacs/src/window.c
{
return decode_valid_window (window)->parent;
}