Function: frame-visible-p
frame-visible-p is a function defined in frame.c.
Signature
(frame-visible-p FRAME)
Documentation
Return t if FRAME is "visible" (actually in use for display).
Return the symbol icon if FRAME is iconified or "minimized".
Return nil if FRAME was made invisible, via make-frame-invisible.
On graphical displays, invisible frames are not updated and are
usually not displayed at all, even in a window system's "taskbar".
Probably introduced at or before Emacs version 29.1.
Source Code
// Defined in /usr/src/emacs/src/frame.c
{
CHECK_LIVE_FRAME (frame);
struct frame *f = XFRAME (frame);
if (FRAME_VISIBLE_P (f))
return Qt;
if (FRAME_ICONIFIED_P (f))
return Qicon;
return Qnil;
}