Function: minibuffer-window-active-p

Return t if WINDOW is the currently active minibuffer window.