]> git.eshelyaron.com Git - emacs.git/commit
Mark some data during drag-and-drop
authorPo Lu <luangruo@yahoo.com>
Tue, 5 Apr 2022 12:03:48 +0000 (20:03 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 5 Apr 2022 12:19:09 +0000 (20:19 +0800)
commit7d504c9acc0c8d75d11c3a2b5e016f39e6156bf8
tree3207ff8a7d216c4908efcb360e6bc5d9a2b03e0e
parent91ca41e292184bf0c21b55a8e51f3eb1a8c89bb7
Mark some data during drag-and-drop

It doesn't make sense to prevent the return frame or movement
frame from being deleted, but we should at least protect them
from garbage collection.

* src/alloc.c (garbage_collect): Call mark_xterm.
* src/xterm.c (x_dnd_begin_drag_and_drop)
(x_dnd_cleanup_drag_and_drop): Clear movement and return frames
upon DND completion.
(mark_xterm): Mark those frames.
* src/xterm.h: Update prototypes.
src/alloc.c
src/xterm.c
src/xterm.h