Function: handle-focus-out

handle-focus-out is an interactive and byte-compiled function defined in frame.el.gz.

Signature

(handle-focus-out EVENT)

Documentation

Handle a focus-out event.

Focus-out events are bound to this function; do not change this binding. Focus-out events occur when a frame loses focus, but that's not the whole story: see after-focus-change-function.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/frame.el.gz
(defun handle-focus-out (event)
  "Handle a focus-out event.
Focus-out events are bound to this function; do not change this
binding.  Focus-out events occur when a frame loses focus, but
that's not the whole story: see `after-focus-change-function'."
  ;; N.B. tty focus goes down a different path; see xterm.el.
  (interactive "e")
  (unless (eq (car event) 'focus-out)
    (error "handle-focus-out should handle focus-out events"))
  (let ((frame (nth 1 event)))
    (when (frame-live-p frame)
      (setf (frame-parameter frame 'last-focus-update) nil)
      (run-hooks 'focus-out-hook)))
  (funcall after-focus-change-function))