]> git.eshelyaron.com Git - emacs.git/commit
Always wait for XdndStatus before sending XdndDrop
authorPo Lu <luangruo@yahoo.com>
Mon, 4 Jul 2022 05:41:20 +0000 (13:41 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 4 Jul 2022 05:41:20 +0000 (13:41 +0800)
commit1da6a6d3271be003b545e41ae21c3071faf22f86
tree233371a59e930ccebcf3766d77aeb10deee2dfca
parentbd034b342ccf15a1887614f19de1caa9ff2f2d22
Always wait for XdndStatus before sending XdndDrop

* src/xterm.c (x_dnd_do_drop): New function.
(x_dnd_begin_drag_and_drop): Clear new flag.
(handle_one_xevent): Use that function; send drops upon receipt
of pending XdndStatus, to avoid race conditions where we don't
yet know the selected action.
src/xterm.c