emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 05705454d5: Don't transfer window attributes trying to find t


From: martin rudalics
Subject: Re: master 05705454d5: Don't transfer window attributes trying to find the XM drag window
Date: Mon, 19 Sep 2022 09:43:50 +0200

>> Thanks, the problem seems fixed here.  Could you please also add a
>> one-liner like
>
> Shouldn't we not run hooks for such events with dead frames?

You mean something like

diff --git a/lisp/frame.el b/lisp/frame.el
index 56a982562d..c7181d9162 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -239,7 +239,8 @@ handle-move-frame
 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)
+      (run-hook-with-args 'move-frame-functions frame))))
 
 ;;;; Arrangement of frames at startup

and you're certainly right.

martin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]