* lisp/frame.el (handle-move-frame): Fix corner case error

This commit is contained in:
Stefan Monnier 2023-01-21 08:49:48 -05:00
parent 1c39347d58
commit de81349bd8

View file

@ -239,7 +239,8 @@ that's not the whole story: see `after-focus-change-function'."
This function runs the abnormal hook `move-frame-functions'."
(interactive "e")
(let ((frame (posn-window (event-start event))))
(run-hook-with-args 'move-frame-functions frame)))
(when (frame-live-p frame) ;Experience shows it can die in the meantime.
(run-hook-with-args 'move-frame-functions frame))))
;;;; Arrangement of frames at startup