Function: handle-focus-in
handle-focus-in is an interactive and byte-compiled function defined
in frame.el.gz.
Signature
(handle-focus-in EVENT)
Documentation
Handle a focus-in event.
Focus-in events are bound to this function; do not change this binding. Focus-in events occur when a frame receives focus from the window system.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/frame.el.gz
(defun handle-focus-in (event)
"Handle a focus-in event.
Focus-in events are bound to this function; do not change this
binding. Focus-in events occur when a frame receives focus from
the window system."
;; N.B. tty focus goes down a different path; see xterm.el.
(interactive "e")
(unless (eq (car-safe event) 'focus-in)
(error "handle-focus-in should handle focus-in events"))
(let ((frame (nth 1 event)))
(when (frame-live-p frame)
(internal-handle-focus-in event)
(setf (frame-parameter frame 'last-focus-update) t)
(run-hooks 'focus-in-hook)))
(funcall after-focus-change-function))