Function: x-focus-frame
x-focus-frame is a function defined in frame.c.
Signature
(x-focus-frame FRAME &optional NOACTIVATE)
Documentation
Set the input focus to FRAME.
FRAME nil means use the selected frame. Optional argument NOACTIVATE means do not activate FRAME.
If there is no window system support, this function does nothing.
Probably introduced at or before Emacs version 26.1.
Source Code
// Defined in /usr/src/emacs/src/frame.c
{
#ifdef HAVE_WINDOW_SYSTEM
struct frame *f = decode_window_system_frame (frame);
if (f && FRAME_TERMINAL (f)->focus_frame_hook)
FRAME_TERMINAL (f)->focus_frame_hook (f, !NILP (noactivate));
#endif
return Qnil;
}