Function: frame-focus
frame-focus is a function defined in frame.c.
Signature
(frame-focus &optional FRAME)
Documentation
Return the frame to which FRAME's keystrokes are currently being sent.
If FRAME is omitted or nil, the selected frame is used.
Return nil if FRAME's focus is not redirected.
See redirect-frame-focus.
Source Code
// Defined in /usr/src/emacs/src/frame.c
{
return FRAME_FOCUS_FRAME (decode_live_frame (frame));
}