Handle case of not knowing a frame when mouse moved
* lisp/xt-mouse.el (xterm-mouse--handle-mouse-movement): Don't call display--update-for-mouse-movement if we don't have a frame.
This commit is contained in:
parent
45f5f718a0
commit
02fbdbf4ff
1 changed files with 5 additions and 3 deletions
|
@ -133,9 +133,11 @@ https://invisible-island.net/xterm/ctlseqs/ctlseqs.html)."
|
|||
|
||||
(defun xterm-mouse--handle-mouse-movement ()
|
||||
"Handle mouse motion that was just generated for XTerm mouse."
|
||||
(display--update-for-mouse-movement (terminal-parameter nil 'xterm-mouse-frame)
|
||||
(terminal-parameter nil 'xterm-mouse-x)
|
||||
(terminal-parameter nil 'xterm-mouse-y)))
|
||||
(when-let* ((frame (terminal-parameter nil 'xterm-mouse-frame)))
|
||||
(display--update-for-mouse-movement
|
||||
frame
|
||||
(terminal-parameter nil 'xterm-mouse-x)
|
||||
(terminal-parameter nil 'xterm-mouse-y))))
|
||||
|
||||
;; These two variables have been converted to terminal parameters.
|
||||
;;
|
||||
|
|
Loading…
Add table
Reference in a new issue