Function: mouse-autoselect-window-cancel
mouse-autoselect-window-cancel is a byte-compiled function defined in
window.el.gz.
Signature
(mouse-autoselect-window-cancel &optional FORCE)
Documentation
Cancel delayed window autoselection.
Optional argument FORCE means cancel unconditionally.
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun mouse-autoselect-window-cancel (&optional force)
"Cancel delayed window autoselection.
Optional argument FORCE means cancel unconditionally."
(unless (and (not force)
;; Don't cancel for select-window or select-frame events
;; or when the user drags a scroll bar.
(or (memq this-command
'(handle-select-window handle-switch-frame))
(and (eq this-command 'scroll-bar-toolkit-scroll)
(memq (nth 4 (event-end last-input-event))
'(handle end-scroll)))))
(setq mouse-autoselect-window-state nil)
(setq mouse-autoselect-window-position-1 nil)
(when (timerp mouse-autoselect-window-timer)
(cancel-timer mouse-autoselect-window-timer))
(remove-hook 'pre-command-hook 'mouse-autoselect-window-cancel)))