selected-window

selected-window is a built-in function in `C source code'.

(selected-window)

Return the selected window.
The selected window is the window in which the standard cursor for
selected windows appears and to which many commands apply.