]> git.eshelyaron.com Git - emacs.git/commit
Further clean up DND target handling
authorPo Lu <luangruo@yahoo.com>
Mon, 30 May 2022 01:25:03 +0000 (09:25 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 30 May 2022 01:25:03 +0000 (09:25 +0800)
commit5b770b60f4f9d7d157774b999b0574aee133e7cb
tree1a76392e1b58a636e4799013ff459d295cc00f53
parente2e232933c6f944b1dda7c578425b34f1e160e7f
Further clean up DND target handling

* src/xfns.c (Fx_begin_drag): Alloca target list.

* src/xterm.c (x_set_dnd_targets): Copy the given targets list.
(x_dnd_begin_drag_and_drop): Record freeing the targets list on
the specpdl.
(handle_one_xevent, x_dnd_cleanup_drag_and_drop)
(x_connection_closed, x_delete_terminal): Stop calling
`x_set_dnd_targets' manually to free the targets list.
src/xfns.c
src/xterm.c