emacs-diffs
[Top][All Lists]
Advanced

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

emacs-29 15e06260ae8: * lisp/x-dnd.el (x-dnd-after-move-frame): Skip dea


From: Eli Zaretskii
Subject: emacs-29 15e06260ae8: * lisp/x-dnd.el (x-dnd-after-move-frame): Skip dead frames. (Bug#63312)
Date: Sat, 6 May 2023 07:16:10 -0400 (EDT)

branch: emacs-29
commit 15e06260ae8f622370b935920b2618cfff4cc8e7
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    * lisp/x-dnd.el (x-dnd-after-move-frame): Skip dead frames.  (Bug#63312)
---
 lisp/x-dnd.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/x-dnd.el b/lisp/x-dnd.el
index 9286a1858cf..acfbbed9677 100644
--- a/lisp/x-dnd.el
+++ b/lisp/x-dnd.el
@@ -609,8 +609,9 @@ message (format 32) that caused EVENT to be generated."
 (defun x-dnd-after-move-frame (frame)
   "Handle FRAME moving to a different position.
 Clear any cached root window position."
-  (set-frame-parameter frame 'dnd-root-window-position
-                       nil))
+  (and (frame-live-p frame)
+       (set-frame-parameter frame 'dnd-root-window-position
+                            nil)))
 
 (add-hook 'move-frame-functions #'x-dnd-after-move-frame)
 



reply via email to

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