Function: ghostel--frame-focus-flags

ghostel--frame-focus-flags is a natively compiled function defined in ghostel.el.

Signature

(ghostel--frame-focus-flags &rest _)

Documentation

Flag each focused frame so its next left-press is a focus click.

For ghostel-mouse-press-or-copy-mode; called after a frame focus change.

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--frame-focus-flags (&rest _)
  "Flag each focused frame so its next left-press is a focus click.
For `ghostel-mouse-press-or-copy-mode'; called after a frame focus change."
  ;; The refocusing click delivers a focus-in just before the press, so flag
  ;; whichever frame reports focus at the event.  Read it fresh each time, not
  ;; diffed against a stored value that a dropped focus-out can leave stale.
  (dolist (frame (frame-list))
    (set-frame-parameter frame 'ghostel--frame-refocused
                         (eq (frame-focus-state frame) t))))