]> git.eshelyaron.com Git - emacs.git/commit
Simplify XDND toplevel freeing code
authorPo Lu <luangruo@yahoo.com>
Wed, 8 Jun 2022 12:04:26 +0000 (20:04 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 8 Jun 2022 12:05:06 +0000 (20:05 +0800)
commitb8e0f2e827744da8dc0454c4220c5c9de2ecd368
treef4949636c126b54f9d6a25e87f3d5f0d8f3009b1
parent496e191fc73441a0bee67c04010fed7c7965e25c
Simplify XDND toplevel freeing code

* src/xterm.c (x_free_dnd_toplevels): New function.
(x_dnd_cleanup_drag_and_drop, x_dnd_begin_drag_and_drop): Record
an unwind function to free DND toplevels instead of doing that
manually everywhere.
src/xterm.c