Determines whether a screen is active.
screen-active-p is the predicate for whether a screen is active.
A screen is normally "active". It can become inactive only when it "dies", which can happen on X interface (GTK+ or Motif) when the X connection get broken for any reason.
CAPI User Guide and Reference Manual (Windows version) - 3 Aug 2017